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

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

Issue 22314003: NavigationController prototype Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: NavController prototype - chrome side Created 7 years, 3 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/public/common/content_switches.cc ('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
(...skipping 20 matching lines...) Expand all
31 unsigned long long document_id, 31 unsigned long long document_id,
32 bool exists, 32 bool exists,
33 int route_id, 33 int route_id,
34 int render_view_route_id); 34 int render_view_route_id);
35 virtual ~WebSharedWorkerProxy(); 35 virtual ~WebSharedWorkerProxy();
36 36
37 // Implementations of WebSharedWorker APIs 37 // Implementations of WebSharedWorker APIs
38 virtual bool isStarted(); 38 virtual bool isStarted();
39 virtual void connect(WebKit::WebMessagePortChannel* channel, 39 virtual void connect(WebKit::WebMessagePortChannel* channel,
40 ConnectListener* listener); 40 ConnectListener* listener);
41 virtual void dispatchFetchEvent(int request_id,
42 WebKit::WebController::Request* request);
41 43
42 virtual void startWorkerContext( 44 virtual void startWorkerContext(
43 const WebKit::WebURL& script_url, 45 const WebKit::WebURL& script_url,
44 const WebKit::WebString& name, 46 const WebKit::WebString& name,
45 const WebKit::WebString& user_agent, 47 const WebKit::WebString& user_agent,
46 const WebKit::WebString& source_code, 48 const WebKit::WebString& source_code,
47 const WebKit::WebString& content_security_policy, 49 const WebKit::WebString& content_security_policy,
48 WebKit::WebContentSecurityPolicyType policy_type, 50 WebKit::WebContentSecurityPolicyType policy_type,
49 long long script_resource_appcache_id); 51 long long script_resource_appcache_id,
52 bool is_controller);
50 53
51 virtual void terminateWorkerContext(); 54 virtual void terminateWorkerContext();
52 virtual void clientDestroyed(); 55 virtual void clientDestroyed();
53 56
54 private: 57 private:
55 // IPC::Listener implementation. 58 // IPC::Listener implementation.
56 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 59 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
57 60
58 // Returns true if the worker is running (can send messages to it). 61 // Returns true if the worker is running (can send messages to it).
59 bool IsStarted(); 62 bool IsStarted();
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // the worker). 109 // the worker).
107 int pending_route_id_; 110 int pending_route_id_;
108 ConnectListener* connect_listener_; 111 ConnectListener* connect_listener_;
109 112
110 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy); 113 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy);
111 }; 114 };
112 115
113 } // namespace content 116 } // namespace content
114 117
115 #endif // CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_ 118 #endif // CONTENT_RENDERER_WEBSHAREDWORKER_PROXY_H_
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/renderer/websharedworker_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698