| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 // instance to network requests. | 214 // instance to network requests. |
| 215 // This function is only intended to be used in web/. | 215 // This function is only intended to be used in web/. |
| 216 // TODO(stuartmorgan): Move this method in an implementation file in web/. | 216 // TODO(stuartmorgan): Move this method in an implementation file in web/. |
| 217 NSString* GetRequestGroupID(); | 217 NSString* GetRequestGroupID(); |
| 218 | 218 |
| 219 // WebState: | 219 // WebState: |
| 220 WebStateDelegate* GetDelegate() override; | 220 WebStateDelegate* GetDelegate() override; |
| 221 void SetDelegate(WebStateDelegate* delegate) override; | 221 void SetDelegate(WebStateDelegate* delegate) override; |
| 222 bool IsWebUsageEnabled() const override; | 222 bool IsWebUsageEnabled() const override; |
| 223 void SetWebUsageEnabled(bool enabled) override; | 223 void SetWebUsageEnabled(bool enabled) override; |
| 224 bool ShouldSuppressDialogs() const override; |
| 225 void SetShouldSuppressDialogs(bool should_suppress) override; |
| 224 UIView* GetView() override; | 226 UIView* GetView() override; |
| 225 BrowserState* GetBrowserState() const override; | 227 BrowserState* GetBrowserState() const override; |
| 226 void OpenURL(const WebState::OpenURLParams& params) override; | 228 void OpenURL(const WebState::OpenURLParams& params) override; |
| 227 const NavigationManager* GetNavigationManager() const override; | 229 const NavigationManager* GetNavigationManager() const override; |
| 228 NavigationManager* GetNavigationManager() override; | 230 NavigationManager* GetNavigationManager() override; |
| 229 CRWJSInjectionReceiver* GetJSInjectionReceiver() const override; | 231 CRWJSInjectionReceiver* GetJSInjectionReceiver() const override; |
| 230 void ExecuteJavaScript(const base::string16& javascript) override; | 232 void ExecuteJavaScript(const base::string16& javascript) override; |
| 231 void ExecuteJavaScript(const base::string16& javascript, | 233 void ExecuteJavaScript(const base::string16& javascript, |
| 232 const JavaScriptResultCallback& callback) override; | 234 const JavaScriptResultCallback& callback) override; |
| 233 const std::string& GetContentLanguageHeader() const override; | 235 const std::string& GetContentLanguageHeader() const override; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 | 361 |
| 360 // Mojo interface registry for this WebState. | 362 // Mojo interface registry for this WebState. |
| 361 std::unique_ptr<shell::InterfaceRegistry> mojo_interface_registry_; | 363 std::unique_ptr<shell::InterfaceRegistry> mojo_interface_registry_; |
| 362 | 364 |
| 363 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); | 365 DISALLOW_COPY_AND_ASSIGN(WebStateImpl); |
| 364 }; | 366 }; |
| 365 | 367 |
| 366 } // namespace web | 368 } // namespace web |
| 367 | 369 |
| 368 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ | 370 #endif // IOS_WEB_WEB_STATE_WEB_STATE_IMPL_H_ |
| OLD | NEW |