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

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

Issue 2847091: Fix bad license header under chrome/ directory. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // source code is governed by a BSD-style license that can be found in the 2 // Use of this source code is governed by a BSD-style license that can be
3 // LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_WEBSHAREDWORKERREPOSITORY_IMPL_H_ 5 #ifndef CHROME_RENDERER_WEBSHAREDWORKERREPOSITORY_IMPL_H_
6 #define CHROME_RENDERER_WEBSHAREDWORKERREPOSITORY_IMPL_H_ 6 #define CHROME_RENDERER_WEBSHAREDWORKERREPOSITORY_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "third_party/WebKit/WebKit/chromium/public/WebSharedWorkerRepository.h" 9 #include "third_party/WebKit/WebKit/chromium/public/WebSharedWorkerRepository.h"
10 10
11 #include "base/hash_tables.h" 11 #include "base/hash_tables.h"
12 12
13 namespace WebKit { 13 namespace WebKit {
14 class WebSharedWorker; 14 class WebSharedWorker;
15 } 15 }
16 16
17 class WebSharedWorkerRepositoryImpl : public WebKit::WebSharedWorkerRepository { 17 class WebSharedWorkerRepositoryImpl : public WebKit::WebSharedWorkerRepository {
18 public: 18 public:
19 virtual ~WebSharedWorkerRepositoryImpl() {} 19 virtual ~WebSharedWorkerRepositoryImpl() {}
20 20
21 virtual void addSharedWorker(WebKit::WebSharedWorker*, DocumentID document); 21 virtual void addSharedWorker(WebKit::WebSharedWorker*, DocumentID document);
22 virtual void documentDetached(DocumentID document); 22 virtual void documentDetached(DocumentID document);
23 23
24 // 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
25 // WebKit code to determine if the document can be suspended). 25 // WebKit code to determine if the document can be suspended).
26 virtual bool hasSharedWorkers(DocumentID document); 26 virtual bool hasSharedWorkers(DocumentID document);
27 27
28 private: 28 private:
29 // The set of documents that have created a SharedWorker. 29 // The set of documents that have created a SharedWorker.
30 typedef base::hash_set<DocumentID> DocumentSet; 30 typedef base::hash_set<DocumentID> DocumentSet;
31 DocumentSet shared_worker_parents_; 31 DocumentSet shared_worker_parents_;
32 }; 32 };
33 33
34 #endif // CHROME_RENDERER_WEBSHAREDWORKERREPOSITORY_IMPL_H_ 34 #endif // CHROME_RENDERER_WEBSHAREDWORKERREPOSITORY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698