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

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

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/browser_main.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) 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 #include <stddef.h>
8 #include <stdint.h>
9
10 #include "build/build_config.h"
11
7 #if !defined(OS_IOS) 12 #if !defined(OS_IOS)
8 #include "content/browser/download/download_manager_impl.h" 13 #include "content/browser/download/download_manager_impl.h"
9 #include "content/browser/fileapi/chrome_blob_storage_context.h" 14 #include "content/browser/fileapi/chrome_blob_storage_context.h"
10 #include "content/browser/indexed_db/indexed_db_context_impl.h" 15 #include "content/browser/indexed_db/indexed_db_context_impl.h"
11 #include "content/browser/loader/resource_dispatcher_host_impl.h" 16 #include "content/browser/loader/resource_dispatcher_host_impl.h"
12 #include "content/browser/push_messaging/push_messaging_router.h" 17 #include "content/browser/push_messaging/push_messaging_router.h"
13 #include "content/browser/storage_partition_impl_map.h" 18 #include "content/browser/storage_partition_impl_map.h"
14 #include "content/common/child_process_host_impl.h" 19 #include "content/common/child_process_host_impl.h"
15 #include "content/public/browser/blob_handle.h" 20 #include "content/public/browser/blob_handle.h"
16 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 base::Bind(&ChromeBlobStorageContext::CreateFileBackedBlob, 246 base::Bind(&ChromeBlobStorageContext::CreateFileBackedBlob,
242 make_scoped_refptr(blob_context), path, offset, size, 247 make_scoped_refptr(blob_context), path, offset, size,
243 expected_modification_time), 248 expected_modification_time),
244 callback); 249 callback);
245 } 250 }
246 251
247 // static 252 // static
248 void BrowserContext::DeliverPushMessage( 253 void BrowserContext::DeliverPushMessage(
249 BrowserContext* browser_context, 254 BrowserContext* browser_context,
250 const GURL& origin, 255 const GURL& origin,
251 int64 service_worker_registration_id, 256 int64_t service_worker_registration_id,
252 const std::string& data, 257 const std::string& data,
253 const base::Callback<void(PushDeliveryStatus)>& callback) { 258 const base::Callback<void(PushDeliveryStatus)>& callback) {
254 DCHECK_CURRENTLY_ON(BrowserThread::UI); 259 DCHECK_CURRENTLY_ON(BrowserThread::UI);
255 PushMessagingRouter::DeliverMessage( 260 PushMessagingRouter::DeliverMessage(
256 browser_context, origin, service_worker_registration_id, data, callback); 261 browser_context, origin, service_worker_registration_id, data, callback);
257 } 262 }
258 263
259 // static 264 // static
260 void BrowserContext::NotifyWillBeDestroyed(BrowserContext* browser_context) { 265 void BrowserContext::NotifyWillBeDestroyed(BrowserContext* browser_context) {
261 // Service Workers must shutdown before the browser context is destroyed, 266 // Service Workers must shutdown before the browser context is destroyed,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 #endif // !OS_IOS 324 #endif // !OS_IOS
320 325
321 BrowserContext::~BrowserContext() { 326 BrowserContext::~BrowserContext() {
322 #if !defined(OS_IOS) 327 #if !defined(OS_IOS)
323 if (GetUserData(kDownloadManagerKeyName)) 328 if (GetUserData(kDownloadManagerKeyName))
324 GetDownloadManager(this)->Shutdown(); 329 GetDownloadManager(this)->Shutdown();
325 #endif 330 #endif
326 } 331 }
327 332
328 } // namespace content 333 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/browser_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698