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/websharedworkerrepository_impl.cc

Issue 6705012: Move the rest of the content browser->renderer messages to content. Also move drag related messa... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « content/renderer/websharedworker_proxy.cc ('k') | content/renderer/webworker_base.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) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "content/renderer/websharedworkerrepository_impl.h" 5 #include "content/renderer/websharedworkerrepository_impl.h"
6 6
7 #include "chrome/common/render_messages.h"
8 #include "chrome/renderer/render_thread.h" 7 #include "chrome/renderer/render_thread.h"
8 #include "content/common/view_messages.h"
9 #include "content/renderer/websharedworker_proxy.h" 9 #include "content/renderer/websharedworker_proxy.h"
10 10
11 WebSharedWorkerRepositoryImpl::WebSharedWorkerRepositoryImpl() {} 11 WebSharedWorkerRepositoryImpl::WebSharedWorkerRepositoryImpl() {}
12 12
13 WebSharedWorkerRepositoryImpl::~WebSharedWorkerRepositoryImpl() {} 13 WebSharedWorkerRepositoryImpl::~WebSharedWorkerRepositoryImpl() {}
14 14
15 void WebSharedWorkerRepositoryImpl::addSharedWorker( 15 void WebSharedWorkerRepositoryImpl::addSharedWorker(
16 WebKit::WebSharedWorker* worker, DocumentID document) { 16 WebKit::WebSharedWorker* worker, DocumentID document) {
17 shared_worker_parents_.insert(document); 17 shared_worker_parents_.insert(document);
18 } 18 }
19 19
20 void WebSharedWorkerRepositoryImpl::documentDetached(DocumentID document) { 20 void WebSharedWorkerRepositoryImpl::documentDetached(DocumentID document) {
21 DocumentSet::iterator iter = shared_worker_parents_.find(document); 21 DocumentSet::iterator iter = shared_worker_parents_.find(document);
22 if (iter != shared_worker_parents_.end()) { 22 if (iter != shared_worker_parents_.end()) {
23 // Notify the browser process that the document has shut down. 23 // Notify the browser process that the document has shut down.
24 ChildThread::current()->Send(new ViewHostMsg_DocumentDetached(document)); 24 ChildThread::current()->Send(new ViewHostMsg_DocumentDetached(document));
25 shared_worker_parents_.erase(iter); 25 shared_worker_parents_.erase(iter);
26 } 26 }
27 } 27 }
28 28
29 bool WebSharedWorkerRepositoryImpl::hasSharedWorkers(DocumentID document) { 29 bool WebSharedWorkerRepositoryImpl::hasSharedWorkers(DocumentID document) {
30 return shared_worker_parents_.find(document) != shared_worker_parents_.end(); 30 return shared_worker_parents_.find(document) != shared_worker_parents_.end();
31 } 31 }
OLDNEW
« no previous file with comments | « content/renderer/websharedworker_proxy.cc ('k') | content/renderer/webworker_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698