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

Side by Side Diff: webkit/glue/webkit_glue.h

Issue 10869073: Split user agent code out of the 'glue' target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to trunk Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/user_agent.cc ('k') | webkit/glue/webkit_glue.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_GLUE_WEBKIT_GLUE_H_ 5 #ifndef WEBKIT_GLUE_WEBKIT_GLUE_H_
6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ 6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Returns a dump of the scroll position of the webframe. 70 // Returns a dump of the scroll position of the webframe.
71 string16 DumpFrameScrollPosition(WebKit::WebFrame* web_frame, bool recursive); 71 string16 DumpFrameScrollPosition(WebKit::WebFrame* web_frame, bool recursive);
72 72
73 // Returns a dump of the given history state suitable for implementing the 73 // Returns a dump of the given history state suitable for implementing the
74 // dumpBackForwardList command of the testRunner. 74 // dumpBackForwardList command of the testRunner.
75 WEBKIT_GLUE_EXPORT string16 DumpHistoryState(const std::string& history_state, 75 WEBKIT_GLUE_EXPORT string16 DumpHistoryState(const std::string& history_state,
76 int indent, 76 int indent,
77 bool is_current); 77 bool is_current);
78 78
79 // Sets the user agent. Pass true for overriding if this is a custom
80 // user agent instead of the default one (in order to turn off any browser
81 // sniffing workarounds). This must be called before GetUserAgent() can
82 // be called.
83 WEBKIT_GLUE_EXPORT void SetUserAgent(const std::string& user_agent,
84 bool overriding);
85
86 // Returns the user agent to use for the given URL. SetUserAgent() must
87 // be called prior to calling this function.
88 WEBKIT_GLUE_EXPORT const std::string& GetUserAgent(const GURL& url);
89
90 // Creates serialized state for the specified URL. This is a variant of 79 // Creates serialized state for the specified URL. This is a variant of
91 // HistoryItemToString (in glue_serialize) that is used during session restore 80 // HistoryItemToString (in glue_serialize) that is used during session restore
92 // if the saved state is empty. 81 // if the saved state is empty.
93 WEBKIT_GLUE_EXPORT std::string CreateHistoryStateForURL(const GURL& url); 82 WEBKIT_GLUE_EXPORT std::string CreateHistoryStateForURL(const GURL& url);
94 83
95 // Removes any form data state from the history state string |content_state|. 84 // Removes any form data state from the history state string |content_state|.
96 WEBKIT_GLUE_EXPORT std::string RemoveFormDataFromHistoryState( 85 WEBKIT_GLUE_EXPORT std::string RemoveFormDataFromHistoryState(
97 const std::string& content_state); 86 const std::string& content_state);
98 87
99 // Removes form data containing passwords from the history state string 88 // Removes form data containing passwords from the history state string
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 WEBKIT_GLUE_EXPORT bool IsInspectorProtocolVersionSupported( 143 WEBKIT_GLUE_EXPORT bool IsInspectorProtocolVersionSupported(
155 const std::string& version); 144 const std::string& version);
156 145
157 // Configures the URLRequest according to the referrer policy. 146 // Configures the URLRequest according to the referrer policy.
158 WEBKIT_GLUE_EXPORT void ConfigureURLRequestForReferrerPolicy( 147 WEBKIT_GLUE_EXPORT void ConfigureURLRequestForReferrerPolicy(
159 net::URLRequest* request, WebKit::WebReferrerPolicy referrer_policy); 148 net::URLRequest* request, WebKit::WebReferrerPolicy referrer_policy);
160 149
161 } // namespace webkit_glue 150 } // namespace webkit_glue
162 151
163 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ 152 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_
OLDNEW
« no previous file with comments | « webkit/glue/user_agent.cc ('k') | webkit/glue/webkit_glue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698