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

Side by Side Diff: content/browser/appcache/appcache_dispatcher_host.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/process/process.h" 16 #include "base/process/process.h"
17 #include "content/browser/appcache/appcache_backend_impl.h" 17 #include "content/browser/appcache/appcache_backend_impl.h"
18 #include "content/browser/appcache/appcache_frontend_proxy.h" 18 #include "content/browser/appcache/appcache_frontend_proxy.h"
19 #include "content/public/browser/browser_message_filter.h" 19 #include "content/public/browser/browser_message_filter.h"
20 20
21 namespace content { 21 namespace content {
22 class ChromeAppCacheService; 22 class ChromeAppCacheService;
23 23
24 // Handles appcache related messages sent to the main browser process from 24 // Handles appcache related messages sent to the main browser process from
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void SwapCacheCallback(bool result, void* param); 63 void SwapCacheCallback(bool result, void* param);
64 64
65 65
66 scoped_refptr<ChromeAppCacheService> appcache_service_; 66 scoped_refptr<ChromeAppCacheService> appcache_service_;
67 AppCacheFrontendProxy frontend_proxy_; 67 AppCacheFrontendProxy frontend_proxy_;
68 AppCacheBackendImpl backend_impl_; 68 AppCacheBackendImpl backend_impl_;
69 69
70 content::GetStatusCallback get_status_callback_; 70 content::GetStatusCallback get_status_callback_;
71 content::StartUpdateCallback start_update_callback_; 71 content::StartUpdateCallback start_update_callback_;
72 content::SwapCacheCallback swap_cache_callback_; 72 content::SwapCacheCallback swap_cache_callback_;
73 scoped_ptr<IPC::Message> pending_reply_msg_; 73 std::unique_ptr<IPC::Message> pending_reply_msg_;
74 74
75 // The corresponding ChildProcessHost object's id(). 75 // The corresponding ChildProcessHost object's id().
76 int process_id_; 76 int process_id_;
77 77
78 base::WeakPtrFactory<AppCacheDispatcherHost> weak_factory_; 78 base::WeakPtrFactory<AppCacheDispatcherHost> weak_factory_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost); 80 DISALLOW_COPY_AND_ASSIGN(AppCacheDispatcherHost);
81 }; 81 };
82 82
83 } // namespace content 83 } // namespace content
84 84
85 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_ 85 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_disk_cache_unittest.cc ('k') | content/browser/appcache/appcache_executable_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698