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

Side by Side Diff: content/browser/shared_worker/shared_worker_service_impl.h

Issue 182693002: Implement some mothods in SharedWorkerHost and SharedWorkerServiceImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_
6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ 6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 void OnSharedWorkerMessageFilterClosing( 85 void OnSharedWorkerMessageFilterClosing(
86 SharedWorkerMessageFilter* filter); 86 SharedWorkerMessageFilter* filter);
87 87
88 private: 88 private:
89 friend struct DefaultSingletonTraits<SharedWorkerServiceImpl>; 89 friend struct DefaultSingletonTraits<SharedWorkerServiceImpl>;
90 90
91 SharedWorkerServiceImpl(); 91 SharedWorkerServiceImpl();
92 virtual ~SharedWorkerServiceImpl(); 92 virtual ~SharedWorkerServiceImpl();
93 93
94 SharedWorkerHost* FindSharedWorkerHost(
95 SharedWorkerMessageFilter* filter,
96 int worker_route_id);
97
94 SharedWorkerInstance* FindSharedWorkerInstance( 98 SharedWorkerInstance* FindSharedWorkerInstance(
95 const GURL& url, 99 const GURL& url,
96 const base::string16& name, 100 const base::string16& name,
97 const WorkerStoragePartition& worker_partition, 101 const WorkerStoragePartition& worker_partition,
98 ResourceContext* resource_context); 102 ResourceContext* resource_context);
99 103
100 ScopedVector<SharedWorkerHost> worker_hosts_; 104 ScopedVector<SharedWorkerHost> worker_hosts_;
101 ObserverList<WorkerServiceObserver> observers_; 105 ObserverList<WorkerServiceObserver> observers_;
102 106
103 DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl); 107 DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl);
104 }; 108 };
105 109
106 } // namespace content 110 } // namespace content
107 111
108 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ 112 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698