Chromium Code Reviews| 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_PUBLIC_WEB_STATE_WEB_STATE_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_ |
| 6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 virtual ~WebState() {} | 62 virtual ~WebState() {} |
| 63 | 63 |
| 64 // Gets the BrowserState associated with this WebState. Can never return null. | 64 // Gets the BrowserState associated with this WebState. Can never return null. |
| 65 virtual BrowserState* GetBrowserState() const = 0; | 65 virtual BrowserState* GetBrowserState() const = 0; |
| 66 | 66 |
| 67 // Opens a URL with the given disposition. The transition specifies how this | 67 // Opens a URL with the given disposition. The transition specifies how this |
| 68 // navigation should be recorded in the history system (for example, typed). | 68 // navigation should be recorded in the history system (for example, typed). |
| 69 virtual void OpenURL(const OpenURLParams& params) = 0; | 69 virtual void OpenURL(const OpenURLParams& params) = 0; |
| 70 | 70 |
| 71 // Gets the NavigationManager associated with this WebState. Can never return | 71 // Gets the NavigationManager associated with this WebState. Can never return |
| 72 // NULL. | 72 // nullptr. |
|
sdefresne
2015/01/09 10:35:30
s/nullptr/null/ in comments
| |
| 73 virtual NavigationManager* GetNavigationManager() = 0; | 73 virtual NavigationManager* GetNavigationManager() = 0; |
| 74 | 74 |
| 75 // Gets the CRWJSInjectionReceiver associated with this WebState. | 75 // Gets the CRWJSInjectionReceiver associated with this WebState. |
| 76 virtual CRWJSInjectionReceiver* GetJSInjectionReceiver() const = 0; | 76 virtual CRWJSInjectionReceiver* GetJSInjectionReceiver() const = 0; |
| 77 | 77 |
| 78 // Gets the contents MIME type. | 78 // Gets the contents MIME type. |
| 79 virtual const std::string& GetContentsMimeType() const = 0; | 79 virtual const std::string& GetContentsMimeType() const = 0; |
| 80 | 80 |
| 81 // Gets the value of the "Content-Language" HTTP header. | 81 // Gets the value of the "Content-Language" HTTP header. |
| 82 virtual const std::string& GetContentLanguageHeader() const = 0; | 82 virtual const std::string& GetContentLanguageHeader() const = 0; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 // TODO(droger): Move these methods to WebStateImpl once it is in ios/. | 124 // TODO(droger): Move these methods to WebStateImpl once it is in ios/. |
| 125 virtual void AddObserver(WebStateObserver* observer) = 0; | 125 virtual void AddObserver(WebStateObserver* observer) = 0; |
| 126 virtual void RemoveObserver(WebStateObserver* observer) = 0; | 126 virtual void RemoveObserver(WebStateObserver* observer) = 0; |
| 127 | 127 |
| 128 WebState() {} | 128 WebState() {} |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 } // namespace web | 131 } // namespace web |
| 132 | 132 |
| 133 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_ | 133 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_H_ |
| OLD | NEW |