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

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

Issue 9557009: IndexedDB: chrome-side changes for permission check from shared worker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move test to separate CL Created 8 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
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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 virtual bool allowDatabase(WebKit::WebFrame* frame, 71 virtual bool allowDatabase(WebKit::WebFrame* frame,
72 const WebKit::WebString& name, 72 const WebKit::WebString& name,
73 const WebKit::WebString& display_name, 73 const WebKit::WebString& display_name,
74 unsigned long estimated_size); 74 unsigned long estimated_size);
75 virtual bool allowFileSystem(); 75 virtual bool allowFileSystem();
76 virtual void openFileSystem(WebKit::WebFileSystem::Type type, 76 virtual void openFileSystem(WebKit::WebFileSystem::Type type,
77 long long size, 77 long long size,
78 bool create, 78 bool create,
79 WebKit::WebFileSystemCallbacks* callbacks); 79 WebKit::WebFileSystemCallbacks* callbacks);
80 virtual bool allowIndexedDB(const WebKit::WebString&);
80 virtual void dispatchDevToolsMessage(const WebKit::WebString&); 81 virtual void dispatchDevToolsMessage(const WebKit::WebString&);
81 virtual void saveDevToolsAgentState(const WebKit::WebString&); 82 virtual void saveDevToolsAgentState(const WebKit::WebString&);
82 83
83 void EnsureWorkerContextTerminates(); 84 void EnsureWorkerContextTerminates();
84 85
85 void set_devtools_agent(SharedWorkerDevToolsAgent* devtools_agent) { 86 void set_devtools_agent(SharedWorkerDevToolsAgent* devtools_agent) {
86 devtools_agent_ = devtools_agent; 87 devtools_agent_ = devtools_agent;
87 } 88 }
88 89
89 private: 90 private:
90 bool Send(IPC::Message* message); 91 bool Send(IPC::Message* message);
91 92
92 int route_id_; 93 int route_id_;
93 int appcache_host_id_; 94 int appcache_host_id_;
94 WebSharedWorkerStub* stub_; 95 WebSharedWorkerStub* stub_;
95 base::WeakPtrFactory<WebSharedWorkerClientProxy> weak_factory_; 96 base::WeakPtrFactory<WebSharedWorkerClientProxy> weak_factory_;
96 SharedWorkerDevToolsAgent* devtools_agent_; 97 SharedWorkerDevToolsAgent* devtools_agent_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerClientProxy); 99 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerClientProxy);
99 }; 100 };
100 101
101 #endif // CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_ 102 #endif // CONTENT_WORKER_WEBWORKERCLIENT_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698