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

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

Issue 340453002: Mojo: HTML Viewer based on Blink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MOJO_EXAMPLES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_
6 #define MOJO_EXAMPLES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_
7
8 #include "base/compiler_specific.h"
9 #include "third_party/WebKit/public/platform/WebMimeRegistry.h"
10
11 namespace mojo {
12 namespace examples {
13
14 class WebMimeRegistryImpl : public blink::WebMimeRegistry {
15 public:
16 WebMimeRegistryImpl() {}
17 virtual ~WebMimeRegistryImpl() {}
18
19 // WebMimeRegistry methods:
20 virtual blink::WebMimeRegistry::SupportsType supportsMIMEType(
21 const blink::WebString& mime_type);
22 virtual blink::WebMimeRegistry::SupportsType supportsImageMIMEType(
23 const blink::WebString& mime_type);
24 virtual blink::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType(
25 const blink::WebString& mime_type);
26 virtual blink::WebMimeRegistry::SupportsType supportsMediaMIMEType(
27 const blink::WebString& mime_type,
28 const blink::WebString& codecs,
29 const blink::WebString& key_system);
30 virtual bool supportsMediaSourceMIMEType(
31 const blink::WebString& mime_type,
32 const blink::WebString& codecs);
33 virtual bool supportsEncryptedMediaMIMEType(
34 const blink::WebString& key_system,
35 const blink::WebString& mime_type,
36 const blink::WebString& codecs);
37 virtual blink::WebMimeRegistry::SupportsType supportsNonImageMIMEType(
38 const blink::WebString& mime_type);
39 virtual blink::WebString mimeTypeForExtension(
40 const blink::WebString& extension);
41 virtual blink::WebString wellKnownMimeTypeForExtension(
42 const blink::WebString& extension);
43 virtual blink::WebString mimeTypeFromFile(
44 const blink::WebString& path);
45 };
46
47 } // namespace examples
48 } // namespace mojo
49
50 #endif // MOJO_EXAMPLES_HTML_VIEWER_WEBMIMEREGISTRY_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/examples/html_viewer/html_viewer.cc ('k') | mojo/examples/html_viewer/webmimeregistry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698