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

Side by Side Diff: chrome/browser/net/http_server_properties_manager.h

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment addressed. Created 7 years, 5 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 | 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 CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ 5 #ifndef CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_
6 #define CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ 6 #define CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Initialize |http_server_properties_impl_| and |io_method_factory_| on IO 61 // Initialize |http_server_properties_impl_| and |io_method_factory_| on IO
62 // thread. It also posts a task to UI thread to get SPDY Server preferences 62 // thread. It also posts a task to UI thread to get SPDY Server preferences
63 // from |pref_service_|. 63 // from |pref_service_|.
64 void InitializeOnIOThread(); 64 void InitializeOnIOThread();
65 65
66 // Prepare for shutdown. Must be called on the UI thread, before destruction. 66 // Prepare for shutdown. Must be called on the UI thread, before destruction.
67 void ShutdownOnUIThread(); 67 void ShutdownOnUIThread();
68 68
69 // Register |prefs| for properties managed here. 69 // Register |prefs| for properties managed here.
70 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); 70 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
71 71
72 // Deletes all data. Works asynchronously, but if a |completion| callback is 72 // Deletes all data. Works asynchronously, but if a |completion| callback is
73 // provided, it will be fired on the UI thread when everything is done. 73 // provided, it will be fired on the UI thread when everything is done.
74 void Clear(const base::Closure& completion); 74 void Clear(const base::Closure& completion);
75 75
76 // ---------------------------------- 76 // ----------------------------------
77 // net::HttpServerProperties methods: 77 // net::HttpServerProperties methods:
78 // ---------------------------------- 78 // ----------------------------------
79 79
80 // Deletes all data. Works asynchronously. 80 // Deletes all data. Works asynchronously.
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 io_prefs_update_timer_; 230 io_prefs_update_timer_;
231 231
232 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_; 232 scoped_ptr<net::HttpServerPropertiesImpl> http_server_properties_impl_;
233 233
234 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager); 234 DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesManager);
235 }; 235 };
236 236
237 } // namespace chrome_browser_net 237 } // namespace chrome_browser_net
238 238
239 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_ 239 #endif // CHROME_BROWSER_NET_HTTP_SERVER_PROPERTIES_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698