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

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

Issue 2946663002: Fix typo s/PlzNaviate/PlzNavigate/ (Closed)
Patch Set: Created 3 years, 6 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 | « chrome/browser/flag_descriptions.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BACKEND_IMPL_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_BACKEND_IMPL_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_BACKEND_IMPL_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_BACKEND_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 typedef base::hash_map<int, std::unique_ptr<AppCacheHost>> HostMap; 60 typedef base::hash_map<int, std::unique_ptr<AppCacheHost>> HostMap;
61 const HostMap& hosts() { return hosts_; } 61 const HostMap& hosts() { return hosts_; }
62 62
63 // Methods to support cross site navigations. Hosts are transferred 63 // Methods to support cross site navigations. Hosts are transferred
64 // from process to process accordingly, deparented from the old 64 // from process to process accordingly, deparented from the old
65 // processes backend and reparented to the new. 65 // processes backend and reparented to the new.
66 std::unique_ptr<AppCacheHost> TransferHostOut(int host_id); 66 std::unique_ptr<AppCacheHost> TransferHostOut(int host_id);
67 void TransferHostIn(int new_host_id, std::unique_ptr<AppCacheHost> host); 67 void TransferHostIn(int new_host_id, std::unique_ptr<AppCacheHost> host);
68 68
69 // PlzNaviate 69 // PlzNavigate
70 // The AppCacheHost is precreated by the AppCacheNavigationHandleCore class 70 // The AppCacheHost is precreated by the AppCacheNavigationHandleCore class
71 // when a navigation is initiated. We register the host with the backend in 71 // when a navigation is initiated. We register the host with the backend in
72 // this function and ignore registrations for this host id from the renderer. 72 // this function and ignore registrations for this host id from the renderer.
73 void RegisterPrecreatedHost(std::unique_ptr<AppCacheHost> host); 73 void RegisterPrecreatedHost(std::unique_ptr<AppCacheHost> host);
74 74
75 private: 75 private:
76 AppCacheServiceImpl* service_; 76 AppCacheServiceImpl* service_;
77 AppCacheFrontend* frontend_; 77 AppCacheFrontend* frontend_;
78 int process_id_; 78 int process_id_;
79 HostMap hosts_; 79 HostMap hosts_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(AppCacheBackendImpl); 81 DISALLOW_COPY_AND_ASSIGN(AppCacheBackendImpl);
82 }; 82 };
83 83
84 } // namespace 84 } // namespace
85 85
86 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_BACKEND_IMPL_H_ 86 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_BACKEND_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698