| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "chrome/common/net/cookie_monster_sqlite.h" | 6 #include "chrome/common/net/cookie_monster_sqlite.h" |
| 7 #include "chrome/common/notification_service.h" | 7 #include "chrome/common/notification_service.h" |
| 8 #include "chrome/common/pref_service.h" | 8 #include "chrome/common/pref_service.h" |
| 9 #include "net/url_request/url_request_context.h" | 9 #include "net/url_request/url_request_context.h" |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 void CleanupOnUIThread(); | 37 void CleanupOnUIThread(); |
| 38 | 38 |
| 39 // Gets the path to the directory for the specified extension. | 39 // Gets the path to the directory for the specified extension. |
| 40 FilePath GetPathForExtension(const std::string& id); | 40 FilePath GetPathForExtension(const std::string& id); |
| 41 | 41 |
| 42 // Gets the path to the directory user scripts are stored in. | 42 // Gets the path to the directory user scripts are stored in. |
| 43 FilePath user_script_dir_path() const { | 43 FilePath user_script_dir_path() const { |
| 44 return user_script_dir_path_; | 44 return user_script_dir_path_; |
| 45 } | 45 } |
| 46 | 46 |
| 47 virtual const std::string& GetUserAgent(const GURL& url) const; |
| 48 |
| 47 private: | 49 private: |
| 48 // Private constructor, use the static factory methods instead. This is | 50 // Private constructor, use the static factory methods instead. This is |
| 49 // expected to be called on the UI thread. | 51 // expected to be called on the UI thread. |
| 50 ChromeURLRequestContext(Profile* profile); | 52 ChromeURLRequestContext(Profile* profile); |
| 51 | 53 |
| 52 // NotificationObserver implementation. | 54 // NotificationObserver implementation. |
| 53 virtual void Observe(NotificationType type, | 55 virtual void Observe(NotificationType type, |
| 54 const NotificationSource& source, | 56 const NotificationSource& source, |
| 55 const NotificationDetails& details); | 57 const NotificationDetails& details); |
| 56 | 58 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 70 // construtor and updated when extensions changed. | 72 // construtor and updated when extensions changed. |
| 71 ExtensionPaths extension_paths_; | 73 ExtensionPaths extension_paths_; |
| 72 | 74 |
| 73 // Path to the directory user scripts are stored in. | 75 // Path to the directory user scripts are stored in. |
| 74 FilePath user_script_dir_path_; | 76 FilePath user_script_dir_path_; |
| 75 | 77 |
| 76 scoped_ptr<SQLitePersistentCookieStore> cookie_db_; | 78 scoped_ptr<SQLitePersistentCookieStore> cookie_db_; |
| 77 PrefService* prefs_; | 79 PrefService* prefs_; |
| 78 bool is_off_the_record_; | 80 bool is_off_the_record_; |
| 79 }; | 81 }; |
| OLD | NEW |