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

Side by Side Diff: ios/chrome/browser/browser_state/off_the_record_chrome_browser_state_io_data.h

Issue 2785493003: Disable SDCH by Default (Closed)
Patch Set: Clean up IOS compilation errors and remove from IOS OTR profile. Created 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 IOS_CHROME_BROWSER_BROWSER_STATE_OFF_THE_RECORD_CHROME_BROWSER_STATE_IO_ DATA_H_ 5 #ifndef IOS_CHROME_BROWSER_BROWSER_STATE_OFF_THE_RECORD_CHROME_BROWSER_STATE_IO_ DATA_H_
6 #define IOS_CHROME_BROWSER_BROWSER_STATE_OFF_THE_RECORD_CHROME_BROWSER_STATE_IO_ DATA_H_ 6 #define IOS_CHROME_BROWSER_BROWSER_STATE_OFF_THE_RECORD_CHROME_BROWSER_STATE_IO_ DATA_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/containers/hash_tables.h" 11 #include "base/containers/hash_tables.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "ios/chrome/browser/browser_state/chrome_browser_state_io_data.h" 15 #include "ios/chrome/browser/browser_state/chrome_browser_state_io_data.h"
16 #include "ios/chrome/browser/net/net_types.h" 16 #include "ios/chrome/browser/net/net_types.h"
17 17
18 class IOSChromeURLRequestContextGetter; 18 class IOSChromeURLRequestContextGetter;
19 19
20 namespace ios { 20 namespace ios {
21 class ChromeBrowserState; 21 class ChromeBrowserState;
22 } 22 }
23 23
24 namespace net { 24 namespace net {
25 class CookieStore; 25 class CookieStore;
26 class HttpNetworkSession; 26 class HttpNetworkSession;
27 class HttpTransactionFactory; 27 class HttpTransactionFactory;
28 class SdchManager;
29 class SdchOwner;
30 class URLRequestContext; 28 class URLRequestContext;
31 } // namespace net 29 } // namespace net
32 30
33 // OffTheRecordChromeBrowserState owns a 31 // OffTheRecordChromeBrowserState owns a
34 // OffTheRecordChromeBrowserStateIOData::Handle, which holds a reference to the 32 // OffTheRecordChromeBrowserStateIOData::Handle, which holds a reference to the
35 // OffTheRecordChromeBrowserStateIOData. 33 // OffTheRecordChromeBrowserStateIOData.
36 // OffTheRecordChromeBrowserStateIOData is intended to own all the objects owned 34 // OffTheRecordChromeBrowserStateIOData is intended to own all the objects owned
37 // by OffTheRecordChromeBrowserState which live on the IO thread, such as, but 35 // by OffTheRecordChromeBrowserState which live on the IO thread, such as, but
38 // not limited to, network objects like CookieMonster, HttpTransactionFactory, 36 // not limited to, network objects like CookieMonster, HttpTransactionFactory,
39 // etc. 37 // etc.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 mutable std::unique_ptr<net::HttpTransactionFactory> main_http_factory_; 106 mutable std::unique_ptr<net::HttpTransactionFactory> main_http_factory_;
109 107
110 mutable std::unique_ptr<net::CookieStore> main_cookie_store_; 108 mutable std::unique_ptr<net::CookieStore> main_cookie_store_;
111 109
112 mutable std::unique_ptr<net::URLRequestJobFactory> main_job_factory_; 110 mutable std::unique_ptr<net::URLRequestJobFactory> main_job_factory_;
113 111
114 // Server bound certificates and cookies are persisted to the disk on iOS. 112 // Server bound certificates and cookies are persisted to the disk on iOS.
115 base::FilePath cookie_path_; 113 base::FilePath cookie_path_;
116 base::FilePath channel_id_path_; 114 base::FilePath channel_id_path_;
117 115
118 mutable std::unique_ptr<net::SdchManager> sdch_manager_;
119 mutable std::unique_ptr<net::SdchOwner> sdch_policy_;
120
121 DISALLOW_COPY_AND_ASSIGN(OffTheRecordChromeBrowserStateIOData); 116 DISALLOW_COPY_AND_ASSIGN(OffTheRecordChromeBrowserStateIOData);
122 }; 117 };
123 118
124 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_OFF_THE_RECORD_CHROME_BROWSER_STATE_ IO_DATA_H_ 119 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_OFF_THE_RECORD_CHROME_BROWSER_STATE_ IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698