| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 5 #ifndef IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| 6 #define IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 6 #define IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // Lazily creates (if necessary) and returns |request_group_id_|. | 211 // Lazily creates (if necessary) and returns |request_group_id_|. |
| 212 // IMPORTANT: This should not be used for anything other than associating this | 212 // IMPORTANT: This should not be used for anything other than associating this |
| 213 // instance to network requests. | 213 // instance to network requests. |
| 214 // This function is only intended to be used in web/. | 214 // This function is only intended to be used in web/. |
| 215 // TODO(stuartmorgan): Move this method in an implementation file in web/. | 215 // TODO(stuartmorgan): Move this method in an implementation file in web/. |
| 216 NSString* GetRequestGroupID(); | 216 NSString* GetRequestGroupID(); |
| 217 | 217 |
| 218 // WebState: | 218 // WebState: |
| 219 WebStateDelegate* GetDelegate() override; | 219 WebStateDelegate* GetDelegate() override; |
| 220 void SetDelegate(WebStateDelegate* delegate) override; | 220 void SetDelegate(WebStateDelegate* delegate) override; |
| 221 bool IsWebUsageEnabled() const override; |
| 222 void SetWebUsageEnabled(bool enabled) override; |
| 221 UIView* GetView() override; | 223 UIView* GetView() override; |
| 222 BrowserState* GetBrowserState() const override; | 224 BrowserState* GetBrowserState() const override; |
| 223 void OpenURL(const WebState::OpenURLParams& params) override; | 225 void OpenURL(const WebState::OpenURLParams& params) override; |
| 224 NavigationManager* GetNavigationManager() override; | 226 NavigationManager* GetNavigationManager() override; |
| 225 CRWJSInjectionReceiver* GetJSInjectionReceiver() const override; | 227 CRWJSInjectionReceiver* GetJSInjectionReceiver() const override; |
| 226 void ExecuteJavaScript(const base::string16& javascript) override; | 228 void ExecuteJavaScript(const base::string16& javascript) override; |
| 227 void ExecuteJavaScript(const base::string16& javascript, | 229 void ExecuteJavaScript(const base::string16& javascript, |
| 228 const JavaScriptResultCallback& callback) override; | 230 const JavaScriptResultCallback& callback) override; |
| 229 const std::string& GetContentLanguageHeader() const override; | 231 const std::string& GetContentLanguageHeader() const override; |
| 230 const std::string& GetContentsMimeType() const override; | 232 const std::string& GetContentsMimeType() const override; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 // any WeakPtrs to WebStateImpl are invalidated before its member variable's | 350 // any WeakPtrs to WebStateImpl are invalidated before its member variable's |
| 349 // destructors are executed, rendering them invalid. | 351 // destructors are executed, rendering them invalid. |
| 350 base::WeakPtrFactory<WebState> weak_factory_; | 352 base::WeakPtrFactory<WebState> weak_factory_; |
| 351 | 353 |
| 352 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); | 354 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); |
| 353 }; | 355 }; |
| 354 | 356 |
| 355 } // namespace web | 357 } // namespace web |
| 356 | 358 |
| 357 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 359 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| OLD | NEW |