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

Side by Side Diff: ios/web/web_state/web_state_impl.h

Issue 1891483005: [ios] Added API to enable/disable web usage for WebState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 4 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 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698