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

Side by Side Diff: content/renderer/websharedworker_proxy.h

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 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/webplugin_delegate_proxy.h ('k') | content/renderer/websharedworker_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_RENDERER_WEBSHAREDWORKER_PROXY_H_ 5 #ifndef CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_
6 #define CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ 6 #define CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 #include "ipc/ipc_listener.h" 14 #include "ipc/ipc_listener.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h"
16 16
17 namespace content {
18
17 class ChildThread; 19 class ChildThread;
18 20
19 // Implementation of the WebSharedWorker APIs. This object is intended to only 21 // Implementation of the WebSharedWorker APIs. This object is intended to only
20 // live long enough to allow the caller to send a "connect" event to the worker 22 // live long enough to allow the caller to send a "connect" event to the worker
21 // thread. Once the connect event has been sent, all future communication will 23 // thread. Once the connect event has been sent, all future communication will
22 // happen via the WebMessagePortChannel, and the WebSharedWorker instance will 24 // happen via the WebMessagePortChannel, and the WebSharedWorker instance will
23 // be freed. 25 // be freed.
24 class WebSharedWorkerProxy : public WebKit::WebSharedWorker, 26 class WebSharedWorkerProxy : public WebKit::WebSharedWorker,
25 private IPC::Listener { 27 private IPC::Listener {
26 public: 28 public:
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 103
102 // The id for the placeholder worker instance we've stored on the 104 // The id for the placeholder worker instance we've stored on the
103 // browser process (we need to pass this same route id back in when creating 105 // browser process (we need to pass this same route id back in when creating
104 // the worker). 106 // the worker).
105 int pending_route_id_; 107 int pending_route_id_;
106 ConnectListener* connect_listener_; 108 ConnectListener* connect_listener_;
107 109
108 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy); 110 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy);
109 }; 111 };
110 112
113 } // namespace content
114
111 #endif // CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ 115 #endif // CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_
OLDNEW
« no previous file with comments | « content/renderer/webplugin_delegate_proxy.h ('k') | content/renderer/websharedworker_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698