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

Unified Diff: ios/web/public/browser_state.h

Issue 1110213002: Upstream most of the iOS WebUI support in ios/web/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: ios/web/public/browser_state.h
diff --git a/ios/web/public/browser_state.h b/ios/web/public/browser_state.h
index 44facddd093ddb9ece2b3e5ccb7b94a3017b987e..c54ac4fbcdb2c0ddc0df727fabacb06a031b3e38 100644
--- a/ios/web/public/browser_state.h
+++ b/ios/web/public/browser_state.h
@@ -17,6 +17,9 @@ class URLRequestContextGetter;
namespace web {
class CertificatePolicyCache;
+class URLDataManagerIOS;
+class URLDataManagerIOSBackend;
+class URLRequestChromeJob;
// This class holds the context needed for a browsing session.
// It lives on the UI thread. All these methods must only be called on the UI
@@ -48,6 +51,21 @@ class BrowserState : public base::SupportsUserData {
protected:
BrowserState();
+
+ private:
+ friend class URLDataManagerIOS;
+ friend class URLRequestChromeJob;
+
+ // Returns the URLDataManagerIOSBackend instance associated with this
+ // BrowserState, creating it if necessary. Should only be called on the IO
+ // thread.
+ // Not intended for usage outside of //web.
+ URLDataManagerIOSBackend* GetURLDataManagerIOSBackendOnIOThread();
+
+ // The URLDataManagerIOSBackend instance associated with this BrowserState.
+ // Created and destroyed on the IO thread, and should be accessed only from
+ // the IO thread.
+ URLDataManagerIOSBackend* url_data_manager_ios_backend_;
};
} // namespace web

Powered by Google App Engine
This is Rietveld 408576698