Home
last modified time | relevance | path

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

1234567891011

/external/chromium_org/content/browser/webui/
Dweb_ui_data_source_unittest.cc67 std::string GetMimeType(const std::string& path) const { in GetMimeType() function in content::WebUIDataSourceTest
68 return source_->GetMimeType(path); in GetMimeType()
144 EXPECT_EQ(GetMimeType(std::string()), html); in TEST_F()
145 EXPECT_EQ(GetMimeType("foo"), html); in TEST_F()
146 EXPECT_EQ(GetMimeType("foo.html"), html); in TEST_F()
147 EXPECT_EQ(GetMimeType(".js"), js); in TEST_F()
148 EXPECT_EQ(GetMimeType("foo.js"), js); in TEST_F()
149 EXPECT_EQ(GetMimeType("js"), html); in TEST_F()
150 EXPECT_EQ(GetMimeType("foojs"), html); in TEST_F()
151 EXPECT_EQ(GetMimeType("foo.jsp"), html); in TEST_F()
Dweb_ui_data_source_impl.cc41 virtual std::string GetMimeType(const std::string& path) const OVERRIDE { in GetMimeType() function in content::WebUIDataSourceImpl::InternalDataSource
42 return parent_->GetMimeType(path); in GetMimeType()
172 std::string WebUIDataSourceImpl::GetMimeType(const std::string& path) const { in GetMimeType() function in content::WebUIDataSourceImpl
/external/chromium_org/chrome/browser/search/
Diframe_source_unittest.cc32 using IframeSource::GetMimeType;
179 TEST_F(IframeSourceTest, GetMimeType) { in TEST_F() argument
181 EXPECT_EQ("text/html", source()->GetMimeType("foo.html")); in TEST_F()
182 EXPECT_EQ("application/javascript", source()->GetMimeType("foo.js")); in TEST_F()
183 EXPECT_EQ("text/css", source()->GetMimeType("foo.css")); in TEST_F()
184 EXPECT_EQ("image/png", source()->GetMimeType("foo.png")); in TEST_F()
185 EXPECT_EQ("", source()->GetMimeType("bogus")); 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/chrome/browser/ui/webui/
Dtheme_source_unittest.cc60 EXPECT_EQ(theme_source()->GetMimeType("css/newtab.css"), "text/css"); in TEST_F()
61 EXPECT_EQ(theme_source()->GetMimeType("css/newtab.css?foo"), "text/css"); in TEST_F()
62 EXPECT_EQ(theme_source()->GetMimeType("WRONGURL"), "image/png"); in TEST_F()
Ddevtools_ui.cc35 virtual std::string GetMimeType(const std::string& path) const;
69 std::string DevToolsDataSource::GetMimeType(const std::string& path) const { in GetMimeType() function in DevToolsDataSource
Dsync_internals_html_source.h22 virtual std::string GetMimeType(const std::string& path) const;
Dshared_resources_data_source.h27 virtual std::string GetMimeType(const std::string&) const;
/external/chromium/chrome/browser/net/
Dview_http_cache_job_factory.cc33 virtual bool GetMimeType(std::string* mime_type) const { in GetMimeType() function in __anon1fbb2f760111::ViewHttpCacheJob
34 return core_->GetMimeType(mime_type); in GetMimeType()
60 bool GetMimeType(std::string* mime_type) const;
148 bool ViewHttpCacheJob::Core::GetMimeType(std::string* mime_type) const { in GetMimeType() function in __anon1fbb2f760111::ViewHttpCacheJob::Core
Dmetadata_url_request.cc33 virtual bool GetMimeType(std::string* mime_type) const;
121 bool MetadataRequestHandler::GetMimeType(std::string* mime_type) const { in GetMimeType() function in __anonf2badd930111::MetadataRequestHandler
Durl_request_mock_http_job.cc108 bool URLRequestMockHTTPJob::GetMimeType(std::string* mime_type) const { in GetMimeType() function in URLRequestMockHTTPJob
111 return info.headers && info.headers->GetMimeType(mime_type); in GetMimeType()
Durl_request_slow_download_job.cc178 bool URLRequestSlowDownloadJob::GetMimeType(std::string* mime_type) const { in GetMimeType() function in URLRequestSlowDownloadJob
181 return info.headers && info.headers->GetMimeType(mime_type); in GetMimeType()
/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::__anon4827041a0111::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::__anon4827041a0111::ViewHttpCacheJob::Core
/external/chromium_org/chrome/browser/download/
Ddownload_crx_util.cc97 download_item.GetMimeType())) { in OpenChromeExtension()
121 if (download_item.GetMimeType() == extensions::Extension::kMimeType || in IsExtensionDownload()
123 download_item.GetMimeType())) { in IsExtensionDownload()
/external/chromium_org/android_webview/browser/
Dintercepted_request_data.cc33 virtual bool GetMimeType(JNIEnv* env, in GetMimeType() function in android_webview::__anon1b8a0f5c0111::StreamReaderJobDelegateImpl
37 return intercepted_request_data_->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()
/external/chromium_org/android_webview/browser/net/
Dandroid_stream_reader_url_request_job.h57 virtual bool GetMimeType(
85 virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
Dandroid_stream_reader_url_request_job.cc262 bool AndroidStreamReaderURLRequestJob::GetMimeType( in GetMimeType() function in AndroidStreamReaderURLRequestJob
275 return delegate_->GetMimeType( in GetMimeType()
317 if (GetMimeType(&mime_type) && !mime_type.empty()) { in HeadersComplete()
/external/chromium_org/content/public/browser/
Dstream_handle.h25 virtual const std::string& GetMimeType() = 0;
/external/chromium/net/url_request/
Durl_request_about_job.h25 virtual bool GetMimeType(std::string* mime_type) const;
/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/chrome/browser/ui/webui/options/chromeos/
Duser_image_source.h29 virtual std::string GetMimeType(const std::string&) const;
/external/chromium/chrome/browser/remoting/
Dremoting_resources_source.h19 virtual std::string GetMimeType(const std::string& path) const;
/external/chromium/chrome/browser/printing/cloud_print/
Dcloud_print_setup_source.h21 virtual std::string GetMimeType(const std::string& path) const;

1234567891011