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

Side by Side Diff: content/worker/websharedworkerclient_proxy.h

Issue 12886018: Add support for WEBKIT_USE_NEW_WEBFILESYSTEMTYPE (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/worker/websharedworkerclient_proxy.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_ 5 #ifndef CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_
6 #define CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_ 6 #define CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "ipc/ipc_channel.h" 10 #include "ipc/ipc_channel.h"
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystem.h" 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystem.h"
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystemType.h "
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerClient .h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerClient .h"
13 14
14 namespace WebKit { 15 namespace WebKit {
15 class WebApplicationCacheHost; 16 class WebApplicationCacheHost;
16 class WebApplicationCacheHostClient; 17 class WebApplicationCacheHostClient;
17 class WebFrame; 18 class WebFrame;
18 } 19 }
19 20
20 namespace content { 21 namespace content {
21 22
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual WebKit::WebNotificationPresenter* notificationPresenter(); 68 virtual WebKit::WebNotificationPresenter* notificationPresenter();
68 69
69 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( 70 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost(
70 WebKit::WebApplicationCacheHostClient* client); 71 WebKit::WebApplicationCacheHostClient* client);
71 72
72 virtual bool allowDatabase(WebKit::WebFrame* frame, 73 virtual bool allowDatabase(WebKit::WebFrame* frame,
73 const WebKit::WebString& name, 74 const WebKit::WebString& name,
74 const WebKit::WebString& display_name, 75 const WebKit::WebString& display_name,
75 unsigned long estimated_size); 76 unsigned long estimated_size);
76 virtual bool allowFileSystem(); 77 virtual bool allowFileSystem();
77 virtual void openFileSystem(WebKit::WebFileSystem::Type type, 78 virtual void openFileSystem(
79 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
80 WebKit::WebFileSystemType type,
81 #else
82 WebKit::WebFileSystem::Type type,
83 #endif
78 long long size, 84 long long size,
79 bool create, 85 bool create,
80 WebKit::WebFileSystemCallbacks* callbacks); 86 WebKit::WebFileSystemCallbacks* callbacks);
81 virtual bool allowIndexedDB(const WebKit::WebString&); 87 virtual bool allowIndexedDB(const WebKit::WebString&);
82 virtual void dispatchDevToolsMessage(const WebKit::WebString&); 88 virtual void dispatchDevToolsMessage(const WebKit::WebString&);
83 virtual void saveDevToolsAgentState(const WebKit::WebString&); 89 virtual void saveDevToolsAgentState(const WebKit::WebString&);
84 90
85 void EnsureWorkerContextTerminates(); 91 void EnsureWorkerContextTerminates();
86 92
87 void set_devtools_agent(SharedWorkerDevToolsAgent* devtools_agent) { 93 void set_devtools_agent(SharedWorkerDevToolsAgent* devtools_agent) {
88 devtools_agent_ = devtools_agent; 94 devtools_agent_ = devtools_agent;
89 } 95 }
90 96
91 private: 97 private:
92 bool Send(IPC::Message* message); 98 bool Send(IPC::Message* message);
93 99
94 int route_id_; 100 int route_id_;
95 int appcache_host_id_; 101 int appcache_host_id_;
96 WebSharedWorkerStub* stub_; 102 WebSharedWorkerStub* stub_;
97 base::WeakPtrFactory<WebSharedWorkerClientProxy> weak_factory_; 103 base::WeakPtrFactory<WebSharedWorkerClientProxy> weak_factory_;
98 SharedWorkerDevToolsAgent* devtools_agent_; 104 SharedWorkerDevToolsAgent* devtools_agent_;
99 105
100 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerClientProxy); 106 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerClientProxy);
101 }; 107 };
102 108
103 } // namespace content 109 } // namespace content
104 110
105 #endif // CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_ 111 #endif // CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/worker/websharedworkerclient_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698