Home
last modified time | relevance | path

Searched refs:GetMimeType (Results 1 – 25 of 152) sorted by relevance

1234567

/external/chromium_org/content/browser/webui/
Dweb_ui_data_source_unittest.cc65 std::string GetMimeType(const std::string& path) const { in GetMimeType() function in content::WebUIDataSourceTest
66 return source_->GetMimeType(path); in GetMimeType()
132 EXPECT_EQ(GetMimeType(std::string()), html); in TEST_F()
133 EXPECT_EQ(GetMimeType("foo"), html); in TEST_F()
134 EXPECT_EQ(GetMimeType("foo.html"), html); in TEST_F()
135 EXPECT_EQ(GetMimeType(".js"), js); in TEST_F()
136 EXPECT_EQ(GetMimeType("foo.js"), js); in TEST_F()
137 EXPECT_EQ(GetMimeType("js"), html); in TEST_F()
138 EXPECT_EQ(GetMimeType("foojs"), html); in TEST_F()
139 EXPECT_EQ(GetMimeType("foo.jsp"), html); in TEST_F()
Dweb_ui_data_source_impl.cc67 virtual std::string GetMimeType(const std::string& path) const OVERRIDE { in GetMimeType() function in content::WebUIDataSourceImpl::InternalDataSource
68 return parent_->GetMimeType(path); in GetMimeType()
198 std::string WebUIDataSourceImpl::GetMimeType(const std::string& path) const { in GetMimeType() function in content::WebUIDataSourceImpl
Dshared_resources_data_source.h24 virtual std::string GetMimeType(const std::string&) const OVERRIDE;
/external/chromium_org/chrome/browser/search/
Diframe_source_unittest.cc33 using IframeSource::GetMimeType;
180 TEST_F(IframeSourceTest, GetMimeType) { in TEST_F() argument
182 EXPECT_EQ("text/html", source()->GetMimeType("foo.html")); in TEST_F()
183 EXPECT_EQ("application/javascript", source()->GetMimeType("foo.js")); in TEST_F()
184 EXPECT_EQ("text/css", source()->GetMimeType("foo.css")); in TEST_F()
185 EXPECT_EQ("image/png", source()->GetMimeType("foo.png")); in TEST_F()
186 EXPECT_EQ("", source()->GetMimeType("bogus")); in TEST_F()
Diframe_source.h20 virtual std::string GetMimeType(
Dlocal_ntp_source.h30 virtual std::string GetMimeType(const std::string& path) const OVERRIDE;
/external/chromium_org/components/dom_distiller/content/
Ddom_distiller_viewer_source_unittest.cc25 EXPECT_EQ("text/css", source_.get()->GetMimeType(kViewerCssPath)); in TEST_F()
26 EXPECT_EQ("text/html", source_.get()->GetMimeType("anythingelse")); in TEST_F()
27 EXPECT_EQ("text/javascript", source_.get()->GetMimeType(kViewerJsPath)); in TEST_F()
/external/chromium_org/chrome/browser/ui/webui/
Dtheme_source_unittest.cc61 EXPECT_EQ(theme_source()->GetMimeType("css/new_tab_theme.css"), "text/css"); in TEST_F()
62 EXPECT_EQ(theme_source()->GetMimeType("css/new_tab_theme.css?foo"), in TEST_F()
64 EXPECT_EQ(theme_source()->GetMimeType("WRONGURL"), "image/png"); in TEST_F()
/external/chromium_org/content/browser/net/
Dview_http_cache_job_factory.cc39 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE{ in GetMimeType() function in content::__anon6dfce2940111::ViewHttpCacheJob
40 return core_->GetMimeType(mime_type); in GetMimeType()
65 bool GetMimeType(std::string* mime_type) const;
155 bool ViewHttpCacheJob::Core::GetMimeType(std::string* mime_type) const { in GetMimeType() function in content::__anon6dfce2940111::ViewHttpCacheJob::Core
/external/chromium_org/chrome/browser/download/
Ddownload_crx_util.cc108 download_item.GetMimeType())) { in OpenChromeExtension()
124 if (download_item.GetMimeType() == extensions::Extension::kMimeType || in IsExtensionDownload()
126 download_item.GetMimeType())) { in IsExtensionDownload()
/external/chromium_org/android_webview/browser/
Daw_web_resource_response.cc35 virtual bool GetMimeType(JNIEnv* env, in GetMimeType() function in android_webview::__anon6212a6e80111::StreamReaderJobDelegateImpl
39 return aw_web_resource_response_->GetMimeType(env, mime_type); in GetMimeType()
/external/chromium_org/content/test/net/
Durl_request_abort_on_end_job.cc83 bool URLRequestAbortOnEndJob::GetMimeType(std::string* mime_type) const { in GetMimeType() function in content::URLRequestAbortOnEndJob
86 return info.headers.get() && info.headers->GetMimeType(mime_type); in GetMimeType()
Durl_request_mock_http_job.cc169 bool URLRequestMockHTTPJob::GetMimeType(std::string* mime_type) const { in GetMimeType() function in content::URLRequestMockHTTPJob
172 return info.headers.get() && info.headers->GetMimeType(mime_type); in GetMimeType()
Durl_request_abort_on_end_job.h30 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
/external/chromium_org/android_webview/browser/net/
Dandroid_stream_reader_url_request_job.h58 virtual bool GetMimeType(
89 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
Dandroid_stream_reader_url_request_job.cc264 bool AndroidStreamReaderURLRequestJob::GetMimeType( in GetMimeType() function in AndroidStreamReaderURLRequestJob
277 return delegate_->GetMimeType( in GetMimeType()
319 if (GetMimeType(&mime_type) && !mime_type.empty()) { in HeadersComplete()
/external/chromium_org/net/url_request/
Durl_request_about_job.h22 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
Durl_request_about_job.cc31 bool URLRequestAboutJob::GetMimeType(std::string* mime_type) const { in GetMimeType() function in net::URLRequestAboutJob
/external/chromium_org/content/public/browser/
Dstream_handle.h30 virtual const std::string& GetMimeType() = 0;
/external/chromium_org/content/browser/streams/
Dstream_url_request_job.cc133 bool StreamURLRequestJob::GetMimeType(std::string* mime_type) const { in GetMimeType() function in content::StreamURLRequestJob
138 return response_info_->headers->GetMimeType(mime_type); in GetMimeType()
/external/chromium_org/content/browser/service_worker/
Dservice_worker_read_from_cache_job.cc78 bool ServiceWorkerReadFromCacheJob::GetMimeType(std::string* mime_type) const { in GetMimeType() function in content::ServiceWorkerReadFromCacheJob
81 return http_info()->headers->GetMimeType(mime_type); in GetMimeType()
/external/chromium_org/content/shell/browser/
Dshell_download_manager_delegate.cc92 download->GetMimeType(), in DetermineDownloadTarget()
103 item->GetMimeType() == "text/html") { in ShouldOpenDownload()
/external/chromium_org/chrome/browser/ui/webui/options/chromeos/
Duser_image_source.h36 virtual std::string GetMimeType(const std::string& path) const OVERRIDE;
/external/chromium_org/net/filter/
Dmock_filter_context.cc21 bool MockFilterContext::GetMimeType(std::string* mime_type) const { in GetMimeType() function in net::MockFilterContext
/external/chromium_org/chrome/browser/ui/webui/chromeos/login/
Dscreenlock_icon_source.h29 virtual std::string GetMimeType(const std::string& path) const OVERRIDE;

1234567