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

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

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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.h ('k') | content/shell/config.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_WEBSHAREDWORKERREPOSITORY_IMPL_H_ 5 #ifndef CONTENT_RENDERER_WEBSHAREDWORKERREPOSITORY_IMPL_H_
6 #define CONTENT_RENDERER_WEBSHAREDWORKERREPOSITORY_IMPL_H_ 6 #define CONTENT_RENDERER_WEBSHAREDWORKERREPOSITORY_IMPL_H_
7 #pragma once
8 7
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerReposi tory.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerReposi tory.h"
10 9
11 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
12 11
13 namespace WebKit { 12 namespace WebKit {
14 class WebSharedWorker; 13 class WebSharedWorker;
15 } 14 }
16 15
17 class WebSharedWorkerRepositoryImpl : public WebKit::WebSharedWorkerRepository { 16 class WebSharedWorkerRepositoryImpl : public WebKit::WebSharedWorkerRepository {
18 public: 17 public:
19 WebSharedWorkerRepositoryImpl(); 18 WebSharedWorkerRepositoryImpl();
20 virtual ~WebSharedWorkerRepositoryImpl(); 19 virtual ~WebSharedWorkerRepositoryImpl();
21 20
22 virtual void addSharedWorker(WebKit::WebSharedWorker*, DocumentID document); 21 virtual void addSharedWorker(WebKit::WebSharedWorker*, DocumentID document);
23 virtual void documentDetached(DocumentID document); 22 virtual void documentDetached(DocumentID document);
24 23
25 // Returns true if the document has created a SharedWorker (used by the 24 // Returns true if the document has created a SharedWorker (used by the
26 // WebKit code to determine if the document can be suspended). 25 // WebKit code to determine if the document can be suspended).
27 virtual bool hasSharedWorkers(DocumentID document); 26 virtual bool hasSharedWorkers(DocumentID document);
28 27
29 private: 28 private:
30 // The set of documents that have created a SharedWorker. 29 // The set of documents that have created a SharedWorker.
31 typedef base::hash_set<DocumentID> DocumentSet; 30 typedef base::hash_set<DocumentID> DocumentSet;
32 DocumentSet shared_worker_parents_; 31 DocumentSet shared_worker_parents_;
33 }; 32 };
34 33
35 #endif // CONTENT_RENDERER_WEBSHAREDWORKERREPOSITORY_IMPL_H_ 34 #endif // CONTENT_RENDERER_WEBSHAREDWORKERREPOSITORY_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/websharedworker_proxy.h ('k') | content/shell/config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698