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

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

Issue 113836: DevTools: introduce bound object on the agent side. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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/webdevtoolsclient_impl.cc ('k') | webkit/glue/webframeloaderclient_impl.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_WEBFRAMELOADERCLIENT_IMPL_H__ 5 #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__
6 #define WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ 6 #define WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 11
12 MSVC_PUSH_WARNING_LEVEL(0); 12 MSVC_PUSH_WARNING_LEVEL(0);
13 #include "FrameLoaderClient.h" 13 #include "FrameLoaderClient.h"
14 MSVC_POP_WARNING(); 14 MSVC_POP_WARNING();
15 15
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "base/scoped_ptr.h" 17 #include "base/scoped_ptr.h"
18 #include "base/time.h" 18 #include "base/time.h"
19 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
20 #include "webkit/glue/webview_delegate.h" 20 #include "webkit/glue/webview_delegate.h"
21 #include "webkit/glue/window_open_disposition.h" 21 #include "webkit/glue/window_open_disposition.h"
22 namespace WebCore { 22 namespace WebCore {
23 class Frame; 23 class Frame;
24 class HTMLFormElement; 24 class HTMLFormElement;
25 class Widget; 25 class Widget;
26 } 26 }
27 27
28 class Alt404PageResourceFetcher; 28 class Alt404PageResourceFetcher;
29 class NetAgentImpl;
30 class WebFrameImpl; 29 class WebFrameImpl;
31 class WebPluginContainer; 30 class WebPluginContainer;
32 31
33 32
34 class WebFrameLoaderClient : public WebCore::FrameLoaderClient { 33 class WebFrameLoaderClient : public WebCore::FrameLoaderClient {
35 public: 34 public:
36 WebFrameLoaderClient(WebFrameImpl* webframe); 35 WebFrameLoaderClient(WebFrameImpl* webframe);
37 virtual ~WebFrameLoaderClient(); 36 virtual ~WebFrameLoaderClient();
38 37
39 WebFrameImpl* webframe() const { return webframe_; } 38 WebFrameImpl* webframe() const { return webframe_; }
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // Returns a valid GURL if we have an alt 404 server URL. 215 // Returns a valid GURL if we have an alt 404 server URL.
217 GURL GetAlt404PageUrl(WebCore::DocumentLoader* loader); 216 GURL GetAlt404PageUrl(WebCore::DocumentLoader* loader);
218 217
219 // Returns NavigationGestureAuto if the last load was not user initiated, 218 // Returns NavigationGestureAuto if the last load was not user initiated,
220 // otherwise returns NavigationGestureUnknown. 219 // otherwise returns NavigationGestureUnknown.
221 NavigationGesture NavigationGestureForLastLoad(); 220 NavigationGesture NavigationGestureForLastLoad();
222 221
223 // Called when a dummy back-forward navigation is intercepted. 222 // Called when a dummy back-forward navigation is intercepted.
224 void HandleBackForwardNavigation(const GURL&); 223 void HandleBackForwardNavigation(const GURL&);
225 224
226 // Returns NetAgent instance if network tracking is enabled.
227 NetAgentImpl* GetNetAgentImpl();
228
229 // The WebFrame that owns this object and manages its lifetime. Therefore, 225 // The WebFrame that owns this object and manages its lifetime. Therefore,
230 // the web frame object is guaranteed to exist. 226 // the web frame object is guaranteed to exist.
231 WebFrameImpl* webframe_; 227 WebFrameImpl* webframe_;
232 228
233 // Resource fetcher for downloading an alternate 404 page. 229 // Resource fetcher for downloading an alternate 404 page.
234 scoped_ptr<Alt404PageResourceFetcher> alt_404_page_fetcher_; 230 scoped_ptr<Alt404PageResourceFetcher> alt_404_page_fetcher_;
235 231
236 bool postpone_loading_data_; 232 bool postpone_loading_data_;
237 std::string postponed_data_; 233 std::string postponed_data_;
238 234
(...skipping 15 matching lines...) Expand all
254 WebPluginContainer* plugin_widget_; 250 WebPluginContainer* plugin_widget_;
255 // Indicates if we need to send over the initial notification to the plugin 251 // Indicates if we need to send over the initial notification to the plugin
256 // which specifies that the plugin should be ready to accept data. 252 // which specifies that the plugin should be ready to accept data.
257 bool sent_initial_response_to_plugin_; 253 bool sent_initial_response_to_plugin_;
258 254
259 // The disposition to use for the next call to dispatchCreatePage. 255 // The disposition to use for the next call to dispatchCreatePage.
260 WindowOpenDisposition next_window_open_disposition_; 256 WindowOpenDisposition next_window_open_disposition_;
261 }; 257 };
262 258
263 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__ 259 #endif // #ifndef WEBKIT_GLUE_WEBFRAMELOADERCLIENT_IMPL_H__
OLDNEW
« no previous file with comments | « webkit/glue/webdevtoolsclient_impl.cc ('k') | webkit/glue/webframeloaderclient_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698