OLD | NEW |
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" |
(...skipping 26 matching lines...) Expand all Loading... |
37 virtual void workerContextDestroyed(); | 37 virtual void workerContextDestroyed(); |
38 | 38 |
39 virtual blink::WebNotificationPresenter* notificationPresenter(); | 39 virtual blink::WebNotificationPresenter* notificationPresenter(); |
40 | 40 |
41 virtual blink::WebApplicationCacheHost* createApplicationCacheHost( | 41 virtual blink::WebApplicationCacheHost* createApplicationCacheHost( |
42 blink::WebApplicationCacheHostClient* client); | 42 blink::WebApplicationCacheHostClient* client); |
43 virtual blink::WebWorkerPermissionClientProxy* | 43 virtual blink::WebWorkerPermissionClientProxy* |
44 createWorkerPermissionClientProxy( | 44 createWorkerPermissionClientProxy( |
45 const blink::WebSecurityOrigin& origin); | 45 const blink::WebSecurityOrigin& origin); |
46 | 46 |
47 // TODO(kinuko): Deprecate these methods. | |
48 virtual bool allowDatabase(blink::WebFrame* frame, | |
49 const blink::WebString& name, | |
50 const blink::WebString& display_name, | |
51 unsigned long estimated_size); | |
52 virtual bool allowFileSystem(); | |
53 virtual bool allowIndexedDB(const blink::WebString&); | |
54 | |
55 virtual void dispatchDevToolsMessage(const blink::WebString&); | 47 virtual void dispatchDevToolsMessage(const blink::WebString&); |
56 virtual void saveDevToolsAgentState(const blink::WebString&); | 48 virtual void saveDevToolsAgentState(const blink::WebString&); |
57 | 49 |
58 void EnsureWorkerContextTerminates(); | 50 void EnsureWorkerContextTerminates(); |
59 | 51 |
60 void set_devtools_agent(SharedWorkerDevToolsAgent* devtools_agent) { | 52 void set_devtools_agent(SharedWorkerDevToolsAgent* devtools_agent) { |
61 devtools_agent_ = devtools_agent; | 53 devtools_agent_ = devtools_agent; |
62 } | 54 } |
63 | 55 |
64 private: | 56 private: |
65 bool Send(IPC::Message* message); | 57 bool Send(IPC::Message* message); |
66 | 58 |
67 int route_id_; | 59 int route_id_; |
68 int appcache_host_id_; | 60 int appcache_host_id_; |
69 WebSharedWorkerStub* stub_; | 61 WebSharedWorkerStub* stub_; |
70 base::WeakPtrFactory<WebSharedWorkerClientProxy> weak_factory_; | 62 base::WeakPtrFactory<WebSharedWorkerClientProxy> weak_factory_; |
71 SharedWorkerDevToolsAgent* devtools_agent_; | 63 SharedWorkerDevToolsAgent* devtools_agent_; |
72 | 64 |
73 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerClientProxy); | 65 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerClientProxy); |
74 }; | 66 }; |
75 | 67 |
76 } // namespace content | 68 } // namespace content |
77 | 69 |
78 #endif // CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_ | 70 #endif // CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_ |
OLD | NEW |