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

Side by Side Diff: content/browser/worker_host/worker_service_impl.h

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WORKER_HOST_WORKER_SERVICE_H_ 5 #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_
6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_ 6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // one worker per process. 101 // one worker per process.
102 bool TabCanCreateWorkerProcess( 102 bool TabCanCreateWorkerProcess(
103 int render_process_id, int render_route_id, bool* hit_total_worker_limit); 103 int render_process_id, int render_route_id, bool* hit_total_worker_limit);
104 104
105 // Tries to see if any of the queued workers can be created. 105 // Tries to see if any of the queued workers can be created.
106 void TryStartingQueuedWorker(); 106 void TryStartingQueuedWorker();
107 107
108 // APIs for manipulating our set of pending shared worker instances. 108 // APIs for manipulating our set of pending shared worker instances.
109 WorkerProcessHost::WorkerInstance* CreatePendingInstance( 109 WorkerProcessHost::WorkerInstance* CreatePendingInstance(
110 const GURL& url, 110 const GURL& url,
111 const string16& name, 111 const base::string16& name,
112 ResourceContext* resource_context, 112 ResourceContext* resource_context,
113 const WorkerStoragePartition& worker_partition); 113 const WorkerStoragePartition& worker_partition);
114 WorkerProcessHost::WorkerInstance* FindPendingInstance( 114 WorkerProcessHost::WorkerInstance* FindPendingInstance(
115 const GURL& url, 115 const GURL& url,
116 const string16& name, 116 const base::string16& name,
117 const WorkerStoragePartition& worker_partition, 117 const WorkerStoragePartition& worker_partition,
118 ResourceContext* resource_context); 118 ResourceContext* resource_context);
119 void RemovePendingInstances( 119 void RemovePendingInstances(
120 const GURL& url, 120 const GURL& url,
121 const string16& name, 121 const base::string16& name,
122 const WorkerStoragePartition& worker_partition, 122 const WorkerStoragePartition& worker_partition,
123 ResourceContext* resource_context); 123 ResourceContext* resource_context);
124 124
125 WorkerProcessHost::WorkerInstance* FindSharedWorkerInstance( 125 WorkerProcessHost::WorkerInstance* FindSharedWorkerInstance(
126 const GURL& url, 126 const GURL& url,
127 const string16& name, 127 const base::string16& name,
128 const WorkerStoragePartition& worker_partition, 128 const WorkerStoragePartition& worker_partition,
129 ResourceContext* resource_context); 129 ResourceContext* resource_context);
130 130
131 scoped_refptr<WorkerPrioritySetter> priority_setter_; 131 scoped_refptr<WorkerPrioritySetter> priority_setter_;
132 132
133 int next_worker_route_id_; 133 int next_worker_route_id_;
134 134
135 WorkerProcessHost::Instances queued_workers_; 135 WorkerProcessHost::Instances queued_workers_;
136 136
137 // These are shared workers that have been looked up, but not created yet. 137 // These are shared workers that have been looked up, but not created yet.
138 // We need to keep a list of these to synchronously detect shared worker 138 // We need to keep a list of these to synchronously detect shared worker
139 // URL mismatches when two pages launch shared workers simultaneously. 139 // URL mismatches when two pages launch shared workers simultaneously.
140 WorkerProcessHost::Instances pending_shared_workers_; 140 WorkerProcessHost::Instances pending_shared_workers_;
141 141
142 ObserverList<WorkerServiceObserver> observers_; 142 ObserverList<WorkerServiceObserver> observers_;
143 143
144 DISALLOW_COPY_AND_ASSIGN(WorkerServiceImpl); 144 DISALLOW_COPY_AND_ASSIGN(WorkerServiceImpl);
145 }; 145 };
146 146
147 } // namespace content 147 } // namespace content
148 148
149 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_ 149 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_SERVICE_H_
OLDNEW
« no previous file with comments | « content/browser/worker_host/worker_process_host.cc ('k') | content/browser/worker_host/worker_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698