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

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 1564963002: [on hold] Remove dependency on RenderViewHost from LoadState notifications Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: only notify navigations / uploads Created 4 years, 6 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 (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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // associated with the owning RenderViewHost. 129 // associated with the owning RenderViewHost.
130 virtual RendererPreferences GetRendererPrefs( 130 virtual RendererPreferences GetRendererPrefs(
131 BrowserContext* browser_context) const = 0; 131 BrowserContext* browser_context) const = 0;
132 132
133 // Notification from the renderer host that blocked UI event occurred. 133 // Notification from the renderer host that blocked UI event occurred.
134 // This happens when there are tab-modal dialogs. In this case, the 134 // This happens when there are tab-modal dialogs. In this case, the
135 // notification is needed to let us draw attention to the dialog (i.e. 135 // notification is needed to let us draw attention to the dialog (i.e.
136 // refocus on the modal dialog, flash title etc). 136 // refocus on the modal dialog, flash title etc).
137 virtual void OnIgnoredUIEvent() {} 137 virtual void OnIgnoredUIEvent() {}
138 138
139 // Notification that the RenderViewHost's load state changed.
140 virtual void LoadStateChanged(const GURL& url,
141 const net::LoadStateWithParam& load_state,
142 uint64_t upload_position,
143 uint64_t upload_size) {}
144
145 // The page wants the hosting window to activate itself (it called the 139 // The page wants the hosting window to activate itself (it called the
146 // JavaScript window.focus() method). 140 // JavaScript window.focus() method).
147 virtual void Activate() {} 141 virtual void Activate() {}
148 142
149 // Called when a file selection is to be done. 143 // Called when a file selection is to be done.
150 virtual void RunFileChooser( 144 virtual void RunFileChooser(
151 RenderViewHost* render_view_host, 145 RenderViewHost* render_view_host,
152 const FileChooserParams& params) {} 146 const FileChooserParams& params) {}
153 147
154 // The contents' preferred size changed. 148 // The contents' preferred size changed.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // Desktop Site" feature. 242 // Desktop Site" feature.
249 virtual bool IsOverridingUserAgent(); 243 virtual bool IsOverridingUserAgent();
250 244
251 protected: 245 protected:
252 virtual ~RenderViewHostDelegate() {} 246 virtual ~RenderViewHostDelegate() {}
253 }; 247 };
254 248
255 } // namespace content 249 } // namespace content
256 250
257 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 251 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.cc ('k') | content/browser/renderer_host/render_view_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698