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

Side by Side Diff: chrome/worker/worker_webkitclient_impl.cc

Issue 342104: Eliminate mime_util dependency in FrameLoaderClientImpl.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « chrome/worker/worker_webkitclient_impl.h ('k') | webkit/api/public/WebMimeRegistry.h » ('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 (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "chrome/worker/worker_webkitclient_impl.h" 5 #include "chrome/worker/worker_webkitclient_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/common/webmessageportchannel_impl.h" 8 #include "chrome/common/webmessageportchannel_impl.h"
9 #include "chrome/worker/worker_thread.h" 9 #include "chrome/worker/worker_thread.h"
10 #include "webkit/api/public/WebString.h" 10 #include "webkit/api/public/WebString.h"
11 #include "webkit/api/public/WebURL.h" 11 #include "webkit/api/public/WebURL.h"
12 12
13 WebKit::WebClipboard* WorkerWebKitClientImpl::clipboard() { 13 using WebKit::WebClipboard;
14 using WebKit::WebMessagePortChannel;
15 using WebKit::WebMimeRegistry;
16 using WebKit::WebSandboxSupport;
17 using WebKit::WebSharedWorkerRepository;
18 using WebKit::WebString;
19 using WebKit::WebURL;
20
21 WebClipboard* WorkerWebKitClientImpl::clipboard() {
14 NOTREACHED(); 22 NOTREACHED();
15 return NULL; 23 return NULL;
16 } 24 }
17 25
18 WebKit::WebMimeRegistry* WorkerWebKitClientImpl::mimeRegistry() { 26 WebMimeRegistry* WorkerWebKitClientImpl::mimeRegistry() {
27 return this;
28 }
29
30 WebSandboxSupport* WorkerWebKitClientImpl::sandboxSupport() {
19 NOTREACHED(); 31 NOTREACHED();
20 return NULL; 32 return NULL;
21 } 33 }
22
23 WebKit::WebSandboxSupport* WorkerWebKitClientImpl::sandboxSupport() {
24 NOTREACHED();
25 return NULL;
26 }
27 34
28 bool WorkerWebKitClientImpl::sandboxEnabled() { 35 bool WorkerWebKitClientImpl::sandboxEnabled() {
29 // Always return true because WebKit should always act as though the Sandbox 36 // Always return true because WebKit should always act as though the Sandbox
30 // is enabled for workers. See the comment in WebKitClient for more info. 37 // is enabled for workers. See the comment in WebKitClient for more info.
31 return true; 38 return true;
32 } 39 }
33 40
34 unsigned long long WorkerWebKitClientImpl::visitedLinkHash( 41 unsigned long long WorkerWebKitClientImpl::visitedLinkHash(
35 const char* canonical_url, 42 const char* canonical_url,
36 size_t length) { 43 size_t length) {
37 NOTREACHED(); 44 NOTREACHED();
38 return 0; 45 return 0;
39 } 46 }
40 47
41 bool WorkerWebKitClientImpl::isLinkVisited(unsigned long long link_hash) { 48 bool WorkerWebKitClientImpl::isLinkVisited(unsigned long long link_hash) {
42 NOTREACHED(); 49 NOTREACHED();
43 return false; 50 return false;
44 } 51 }
45 52
46 WebKit::WebMessagePortChannel* 53 WebMessagePortChannel*
47 WorkerWebKitClientImpl::createMessagePortChannel() { 54 WorkerWebKitClientImpl::createMessagePortChannel() {
48 return new WebMessagePortChannelImpl(); 55 return new WebMessagePortChannelImpl();
49 } 56 }
50 57
51 void WorkerWebKitClientImpl::setCookies(const WebKit::WebURL& url, 58 void WorkerWebKitClientImpl::setCookies(const WebURL& url,
52 const WebKit::WebURL& policy_url, 59 const WebURL& policy_url,
53 const WebKit::WebString& value) { 60 const WebString& value) {
54 NOTREACHED(); 61 NOTREACHED();
55 } 62 }
56 63
57 WebKit::WebString WorkerWebKitClientImpl::cookies( 64 WebString WorkerWebKitClientImpl::cookies(
58 const WebKit::WebURL& url, const WebKit::WebURL& policy_url) { 65 const WebURL& url, const WebURL& policy_url) {
59 NOTREACHED(); 66 NOTREACHED();
60 return WebKit::WebString(); 67 return WebString();
61 } 68 }
62 69
63 void WorkerWebKitClientImpl::prefetchHostName(const WebKit::WebString&) { 70 void WorkerWebKitClientImpl::prefetchHostName(const WebString&) {
64 NOTREACHED(); 71 NOTREACHED();
65 } 72 }
66 73
67 bool WorkerWebKitClientImpl::getFileSize(const WebKit::WebString& path, 74 bool WorkerWebKitClientImpl::getFileSize(const WebString& path,
68 long long& result) { 75 long long& result) {
69 NOTREACHED(); 76 NOTREACHED();
70 return false; 77 return false;
71 } 78 }
72 79
73 WebKit::WebString WorkerWebKitClientImpl::defaultLocale() { 80 WebString WorkerWebKitClientImpl::defaultLocale() {
74 NOTREACHED(); 81 NOTREACHED();
75 return WebKit::WebString(); 82 return WebString();
76 } 83 }
77 84
78 WebKit::WebSharedWorkerRepository* 85 WebSharedWorkerRepository*
79 WorkerWebKitClientImpl::sharedWorkerRepository() { 86 WorkerWebKitClientImpl::sharedWorkerRepository() {
80 return 0; 87 return 0;
81 } 88 }
89
90 WebMimeRegistry::SupportsType WorkerWebKitClientImpl::supportsMIMEType(
91 const WebString&) {
92 return WebMimeRegistry::IsSupported;
93 }
94
95 WebMimeRegistry::SupportsType WorkerWebKitClientImpl::supportsImageMIMEType(
96 const WebString&) {
97 NOTREACHED();
98 return WebMimeRegistry::IsSupported;
99 }
100
101 WebMimeRegistry::SupportsType WorkerWebKitClientImpl::supportsJavaScriptMIMEType (
102 const WebString&) {
103 NOTREACHED();
104 return WebMimeRegistry::IsSupported;
105 }
106
107 WebMimeRegistry::SupportsType WorkerWebKitClientImpl::supportsMediaMIMEType(
108 const WebString&, const WebString&) {
109 NOTREACHED();
110 return WebMimeRegistry::IsSupported;
111 }
112
113 WebMimeRegistry::SupportsType WorkerWebKitClientImpl::supportsNonImageMIMEType(
114 const WebString&) {
115 NOTREACHED();
116 return WebMimeRegistry::IsSupported;
117 }
118
119 WebString WorkerWebKitClientImpl::mimeTypeForExtension(const WebString&) {
120 NOTREACHED();
121 return WebString();
122 }
123
124 WebString WorkerWebKitClientImpl::mimeTypeFromFile(const WebString&) {
125 NOTREACHED();
126 return WebString();
127 }
128
129 WebString WorkerWebKitClientImpl::preferredExtensionForMIMEType(
130 const WebString&) {
131 NOTREACHED();
132 return WebString();
133 }
OLDNEW
« no previous file with comments | « chrome/worker/worker_webkitclient_impl.h ('k') | webkit/api/public/WebMimeRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698