| Index: ios/web/public/web_client.h
|
| diff --git a/ios/web/public/web_client.h b/ios/web/public/web_client.h
|
| index 41ee68089ddf442d3994466d2eede74eb62cd85a..d4bd2b04c16d4fab7589b3d95dff1302172a46b1 100644
|
| --- a/ios/web/public/web_client.h
|
| +++ b/ios/web/public/web_client.h
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "base/strings/string16.h"
|
| #include "base/strings/string_piece.h"
|
| +#include "ios/web/public/web_view_type.h"
|
| #include "ui/base/layout.h"
|
|
|
| namespace base {
|
| @@ -20,8 +21,10 @@ class GURL;
|
|
|
| #ifdef __OBJC__
|
| @class UIWebView;
|
| +@class NSString;
|
| #else
|
| class UIWebView;
|
| +class NSString;
|
| #endif
|
|
|
| namespace web {
|
| @@ -61,6 +64,9 @@ class WebClient {
|
| // Used to decide URL formating.
|
| virtual std::string GetAcceptLangs(BrowserState* state) const;
|
|
|
| + // Returns the embedding application locale string.
|
| + virtual std::string GetApplicationLocale() const;
|
| +
|
| // Returns true if URL has application specific schema. Embedder must return
|
| // true for every custom app specific schema it supports. For example Chromium
|
| // browser would return true for "chrome://about" URL.
|
| @@ -100,6 +106,10 @@ class WebClient {
|
| // Gives the embedder a chance to add url rewriters to the BrowserURLRewriter
|
| // singleton.
|
| virtual void PostBrowserURLRewriterCreation(BrowserURLRewriter* rewriter) {}
|
| +
|
| + // Gives the embedder a chance to provide the JavaScript to be injected into
|
| + // the web view as early as possible. Result must not be nil.
|
| + virtual NSString* GetEarlyPageScript(WebViewType web_view_type) const;
|
| };
|
|
|
| } // namespace web
|
|
|