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

Side by Side Diff: content/renderer/shared_worker_repository.cc

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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/renderer/shared_worker_repository.h" 5 #include "content/renderer/shared_worker_repository.h"
6 6
7 #include "content/child/child_thread.h" 7 #include "content/child/child_thread.h"
8 #include "content/common/view_messages.h" 8 #include "content/common/view_messages.h"
9 #include "content/renderer/render_view_impl.h" 9 #include "content/renderer/render_view_impl.h"
10 #include "content/renderer/websharedworker_proxy.h" 10 #include "content/renderer/websharedworker_proxy.h"
11 #include "third_party/WebKit/public/web/WebView.h" 11 #include "third_party/WebKit/public/web/WebView.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 SharedWorkerRepository::SharedWorkerRepository(RenderViewImpl* render_view) 15 SharedWorkerRepository::SharedWorkerRepository(RenderViewImpl* render_view)
16 : RenderViewObserver(render_view) { 16 : RenderViewObserver(render_view) {
17 render_view->GetWebView()->setSharedWorkerRepositoryClient(this); 17 render_view->GetWebView()->setSharedWorkerRepositoryClient(this);
18 } 18 }
19 19
20 SharedWorkerRepository::~SharedWorkerRepository() {} 20 SharedWorkerRepository::~SharedWorkerRepository() {}
21 21
22 WebKit::WebSharedWorker* SharedWorkerRepository::createSharedWorker( 22 blink::WebSharedWorker* SharedWorkerRepository::createSharedWorker(
23 const WebKit::WebURL& url, 23 const blink::WebURL& url,
24 const WebKit::WebString& name, 24 const blink::WebString& name,
25 DocumentID document_id) { 25 DocumentID document_id) {
26 int route_id = MSG_ROUTING_NONE; 26 int route_id = MSG_ROUTING_NONE;
27 bool exists = false; 27 bool exists = false;
28 bool url_mismatch = false; 28 bool url_mismatch = false;
29 ViewHostMsg_CreateWorker_Params params; 29 ViewHostMsg_CreateWorker_Params params;
30 params.url = url; 30 params.url = url;
31 params.name = name; 31 params.name = name;
32 params.document_id = document_id; 32 params.document_id = document_id;
33 params.render_view_route_id = render_view()->GetRoutingID(); 33 params.render_view_route_id = render_view()->GetRoutingID();
34 params.route_id = MSG_ROUTING_NONE; 34 params.route_id = MSG_ROUTING_NONE;
(...skipping 13 matching lines...) Expand all
48 void SharedWorkerRepository::documentDetached(DocumentID document) { 48 void SharedWorkerRepository::documentDetached(DocumentID document) {
49 std::set<DocumentID>::iterator iter = documents_with_workers_.find(document); 49 std::set<DocumentID>::iterator iter = documents_with_workers_.find(document);
50 if (iter != documents_with_workers_.end()) { 50 if (iter != documents_with_workers_.end()) {
51 // Notify the browser process that the document has shut down. 51 // Notify the browser process that the document has shut down.
52 Send(new ViewHostMsg_DocumentDetached(document)); 52 Send(new ViewHostMsg_DocumentDetached(document));
53 documents_with_workers_.erase(iter); 53 documents_with_workers_.erase(iter);
54 } 54 }
55 } 55 }
56 56
57 } // namespace content 57 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/shared_worker_repository.h ('k') | content/renderer/skia_benchmarking_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698