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

Side by Side Diff: content/browser/browser_context.cc

Issue 658783002: Split PushMessagingStatus enum according to use case (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment Created 6 years, 2 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) 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 #include "content/public/browser/browser_context.h" 5 #include "content/public/browser/browser_context.h"
6 6
7 #if !defined(OS_IOS) 7 #if !defined(OS_IOS)
8 #include "content/browser/download/download_manager_impl.h" 8 #include "content/browser/download/download_manager_impl.h"
9 #include "content/browser/fileapi/chrome_blob_storage_context.h" 9 #include "content/browser/fileapi/chrome_blob_storage_context.h"
10 #include "content/browser/indexed_db/indexed_db_context_impl.h" 10 #include "content/browser/indexed_db/indexed_db_context_impl.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 make_scoped_refptr(blob_context), data, length), 212 make_scoped_refptr(blob_context), data, length),
213 callback); 213 callback);
214 } 214 }
215 215
216 // static 216 // static
217 void BrowserContext::DeliverPushMessage( 217 void BrowserContext::DeliverPushMessage(
218 BrowserContext* browser_context, 218 BrowserContext* browser_context,
219 const GURL& origin, 219 const GURL& origin,
220 int64 service_worker_registration_id, 220 int64 service_worker_registration_id,
221 const std::string& data, 221 const std::string& data,
222 const base::Callback<void(PushMessagingStatus)>& callback) { 222 const base::Callback<void(PushDeliveryStatus)>& callback) {
223 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 223 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
224 PushMessagingRouter::DeliverMessage( 224 PushMessagingRouter::DeliverMessage(
225 browser_context, origin, service_worker_registration_id, data, callback); 225 browser_context, origin, service_worker_registration_id, data, callback);
226 } 226 }
227 227
228 void BrowserContext::EnsureResourceContextInitialized(BrowserContext* context) { 228 void BrowserContext::EnsureResourceContextInitialized(BrowserContext* context) {
229 // This will be enough to tickle initialization of BrowserContext if 229 // This will be enough to tickle initialization of BrowserContext if
230 // necessary, which initializes ResourceContext. The reason we don't call 230 // necessary, which initializes ResourceContext. The reason we don't call
231 // ResourceContext::InitializeResourceContext() directly here is that 231 // ResourceContext::InitializeResourceContext() directly here is that
232 // ResourceContext initialization may call back into BrowserContext 232 // ResourceContext initialization may call back into BrowserContext
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 #endif // !OS_IOS 273 #endif // !OS_IOS
274 274
275 BrowserContext::~BrowserContext() { 275 BrowserContext::~BrowserContext() {
276 #if !defined(OS_IOS) 276 #if !defined(OS_IOS)
277 if (GetUserData(kDownloadManagerKeyName)) 277 if (GetUserData(kDownloadManagerKeyName))
278 GetDownloadManager(this)->Shutdown(); 278 GetDownloadManager(this)->Shutdown();
279 #endif 279 #endif
280 } 280 }
281 281
282 } // namespace content 282 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/services/gcm/push_messaging_service_impl.cc ('k') | content/browser/push_messaging_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698