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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
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_WEBSHAREDWORKER_STUB_H_ 5 #ifndef CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_
6 #define CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ 6 #define CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/worker/websharedworkerclient_proxy.h" 9 #include "content/worker/websharedworkerclient_proxy.h"
10 #include "content/worker/worker_webapplicationcachehost_impl.h" 10 #include "content/worker/worker_webapplicationcachehost_impl.h"
11 #include "ipc/ipc_listener.h" 11 #include "ipc/ipc_listener.h"
12 #include "third_party/WebKit/public/web/WebSharedWorker.h" 12 #include "third_party/WebKit/public/web/WebSharedWorker.h"
13 #include "url/gurl.h" 13 #include "url/gurl.h"
14 14
15 namespace WebKit { 15 namespace blink {
16 class WebSharedWorker; 16 class WebSharedWorker;
17 } 17 }
18 18
19 namespace content { 19 namespace content {
20 20
21 class SharedWorkerDevToolsAgent; 21 class SharedWorkerDevToolsAgent;
22 22
23 // This class creates a WebSharedWorker, and translates incoming IPCs to the 23 // This class creates a WebSharedWorker, and translates incoming IPCs to the
24 // appropriate WebSharedWorker APIs. 24 // appropriate WebSharedWorker APIs.
25 class WebSharedWorkerStub : public IPC::Listener { 25 class WebSharedWorkerStub : public IPC::Listener {
(...skipping 22 matching lines...) Expand all
48 const GURL& url(); 48 const GURL& url();
49 49
50 50
51 private: 51 private:
52 virtual ~WebSharedWorkerStub(); 52 virtual ~WebSharedWorkerStub();
53 53
54 void OnConnect(int sent_message_port_id, int routing_id); 54 void OnConnect(int sent_message_port_id, int routing_id);
55 void OnStartWorkerContext( 55 void OnStartWorkerContext(
56 const GURL& url, const string16& user_agent, const string16& source_code, 56 const GURL& url, const string16& user_agent, const string16& source_code,
57 const string16& content_security_policy, 57 const string16& content_security_policy,
58 WebKit::WebContentSecurityPolicyType policy_type); 58 blink::WebContentSecurityPolicyType policy_type);
59 59
60 void OnTerminateWorkerContext(); 60 void OnTerminateWorkerContext();
61 61
62 int route_id_; 62 int route_id_;
63 WorkerAppCacheInitInfo appcache_init_info_; 63 WorkerAppCacheInitInfo appcache_init_info_;
64 64
65 // WebSharedWorkerClient that responds to outgoing API calls 65 // WebSharedWorkerClient that responds to outgoing API calls
66 // from the worker object. 66 // from the worker object.
67 WebSharedWorkerClientProxy client_; 67 WebSharedWorkerClientProxy client_;
68 68
69 WebKit::WebSharedWorker* impl_; 69 blink::WebSharedWorker* impl_;
70 string16 name_; 70 string16 name_;
71 bool started_; 71 bool started_;
72 GURL url_; 72 GURL url_;
73 scoped_ptr<SharedWorkerDevToolsAgent> worker_devtools_agent_; 73 scoped_ptr<SharedWorkerDevToolsAgent> worker_devtools_agent_;
74 74
75 typedef std::pair<int, int> PendingConnectInfo; 75 typedef std::pair<int, int> PendingConnectInfo;
76 typedef std::vector<PendingConnectInfo> PendingConnectInfoList; 76 typedef std::vector<PendingConnectInfo> PendingConnectInfoList;
77 PendingConnectInfoList pending_connects_; 77 PendingConnectInfoList pending_connects_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub); 79 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub);
80 }; 80 };
81 81
82 } // namespace content 82 } // namespace content
83 83
84 #endif // CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_ 84 #endif // CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_
OLDNEW
« no previous file with comments | « content/worker/shared_worker_permission_client_proxy.cc ('k') | content/worker/websharedworker_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698