Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1385)

Side by Side Diff: mojo/services/html_viewer/webmimeregistry_impl.h

Issue 511583002: Update mojo's WebMimeRegistry for supportsImagePrefixed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | mojo/services/html_viewer/webmimeregistry_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SERVICES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_ 5 #ifndef MOJO_SERVICES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_
6 #define MOJO_SERVICES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_ 6 #define MOJO_SERVICES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "third_party/WebKit/public/platform/WebMimeRegistry.h" 9 #include "third_party/WebKit/public/platform/WebMimeRegistry.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 12
13 class WebMimeRegistryImpl : public blink::WebMimeRegistry { 13 class WebMimeRegistryImpl : public blink::WebMimeRegistry {
14 public: 14 public:
15 WebMimeRegistryImpl() {} 15 WebMimeRegistryImpl() {}
16 virtual ~WebMimeRegistryImpl() {} 16 virtual ~WebMimeRegistryImpl() {}
17 17
18 // WebMimeRegistry methods: 18 // WebMimeRegistry methods:
19 virtual blink::WebMimeRegistry::SupportsType supportsMIMEType( 19 virtual blink::WebMimeRegistry::SupportsType supportsMIMEType(
20 const blink::WebString& mime_type); 20 const blink::WebString& mime_type);
21 virtual blink::WebMimeRegistry::SupportsType supportsImageMIMEType( 21 virtual blink::WebMimeRegistry::SupportsType supportsImageMIMEType(
22 const blink::WebString& mime_type); 22 const blink::WebString& mime_type);
23 virtual blink::WebMimeRegistry::SupportsType supportsImagePrefixedMIMEType(
24 const blink::WebString& mime_type);
23 virtual blink::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType( 25 virtual blink::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType(
24 const blink::WebString& mime_type); 26 const blink::WebString& mime_type);
25 virtual blink::WebMimeRegistry::SupportsType supportsMediaMIMEType( 27 virtual blink::WebMimeRegistry::SupportsType supportsMediaMIMEType(
26 const blink::WebString& mime_type, 28 const blink::WebString& mime_type,
27 const blink::WebString& codecs, 29 const blink::WebString& codecs,
28 const blink::WebString& key_system); 30 const blink::WebString& key_system);
29 virtual bool supportsMediaSourceMIMEType( 31 virtual bool supportsMediaSourceMIMEType(
30 const blink::WebString& mime_type, 32 const blink::WebString& mime_type,
31 const blink::WebString& codecs); 33 const blink::WebString& codecs);
32 virtual bool supportsEncryptedMediaMIMEType( 34 virtual bool supportsEncryptedMediaMIMEType(
33 const blink::WebString& key_system, 35 const blink::WebString& key_system,
34 const blink::WebString& mime_type, 36 const blink::WebString& mime_type,
35 const blink::WebString& codecs); 37 const blink::WebString& codecs);
36 virtual blink::WebMimeRegistry::SupportsType supportsNonImageMIMEType( 38 virtual blink::WebMimeRegistry::SupportsType supportsNonImageMIMEType(
37 const blink::WebString& mime_type); 39 const blink::WebString& mime_type);
38 virtual blink::WebString mimeTypeForExtension( 40 virtual blink::WebString mimeTypeForExtension(
39 const blink::WebString& extension); 41 const blink::WebString& extension);
40 virtual blink::WebString wellKnownMimeTypeForExtension( 42 virtual blink::WebString wellKnownMimeTypeForExtension(
41 const blink::WebString& extension); 43 const blink::WebString& extension);
42 virtual blink::WebString mimeTypeFromFile( 44 virtual blink::WebString mimeTypeFromFile(
43 const blink::WebString& path); 45 const blink::WebString& path);
44 }; 46 };
45 47
46 } // namespace mojo 48 } // namespace mojo
47 49
48 #endif // MOJO_SERVICES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_ 50 #endif // MOJO_SERVICES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/services/html_viewer/webmimeregistry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698