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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 1564963002: [on hold] Remove dependency on RenderViewHost from LoadState notifications Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make LoadInfo CONTENT_EXPORT for tests 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <functional> 10 #include <functional>
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // Adds the given accessibility mode to the current accessibility mode 208 // Adds the given accessibility mode to the current accessibility mode
209 // bitmap. 209 // bitmap.
210 void AddAccessibilityMode(AccessibilityMode mode); 210 void AddAccessibilityMode(AccessibilityMode mode);
211 211
212 // Removes the given accessibility mode from the current accessibility 212 // Removes the given accessibility mode from the current accessibility
213 // mode bitmap, managing the bits that are shared with other modes such 213 // mode bitmap, managing the bits that are shared with other modes such
214 // that a bit will only be turned off when all modes that depend on it 214 // that a bit will only be turned off when all modes that depend on it
215 // have been removed. 215 // have been removed.
216 void RemoveAccessibilityMode(AccessibilityMode mode); 216 void RemoveAccessibilityMode(AccessibilityMode mode);
217 217
218 // Notification that the WebContents load state changed.
219 void LoadStateChanged(const GURL& url,
220 const net::LoadStateWithParam& load_state,
221 uint64_t upload_position,
222 uint64_t upload_size);
223
218 // Request a one-time snapshot of the accessibility tree without changing 224 // Request a one-time snapshot of the accessibility tree without changing
219 // the accessibility mode. 225 // the accessibility mode.
220 using AXTreeSnapshotCallback = 226 using AXTreeSnapshotCallback =
221 base::Callback<void( 227 base::Callback<void(
222 const ui::AXTreeUpdate&)>; 228 const ui::AXTreeUpdate&)>;
223 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback); 229 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback);
224 230
225 // Set a temporary zoom level for the frames associated with this WebContents. 231 // Set a temporary zoom level for the frames associated with this WebContents.
226 // If |is_temporary| is true, we are setting a new temporary zoom level, 232 // If |is_temporary| is true, we are setting a new temporary zoom level,
227 // otherwise we are clearing a previously set temporary zoom level. 233 // otherwise we are clearing a previously set temporary zoom level.
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 void RouteCloseEvent(RenderViewHost* rvh) override; 491 void RouteCloseEvent(RenderViewHost* rvh) override;
486 bool AddMessageToConsole(int32_t level, 492 bool AddMessageToConsole(int32_t level,
487 const base::string16& message, 493 const base::string16& message,
488 int32_t line_no, 494 int32_t line_no,
489 const base::string16& source_id) override; 495 const base::string16& source_id) override;
490 RendererPreferences GetRendererPrefs( 496 RendererPreferences GetRendererPrefs(
491 BrowserContext* browser_context) const override; 497 BrowserContext* browser_context) const override;
492 void OnUserInteraction(RenderWidgetHostImpl* render_widget_host, 498 void OnUserInteraction(RenderWidgetHostImpl* render_widget_host,
493 const blink::WebInputEvent::Type type) override; 499 const blink::WebInputEvent::Type type) override;
494 void OnIgnoredUIEvent() override; 500 void OnIgnoredUIEvent() override;
495 void LoadStateChanged(const GURL& url,
496 const net::LoadStateWithParam& load_state,
497 uint64_t upload_position,
498 uint64_t upload_size) override;
499 void Activate() override; 501 void Activate() override;
500 void RunFileChooser(RenderViewHost* render_view_host, 502 void RunFileChooser(RenderViewHost* render_view_host,
501 const FileChooserParams& params) override; 503 const FileChooserParams& params) override;
502 void UpdatePreferredSize(const gfx::Size& pref_size) override; 504 void UpdatePreferredSize(const gfx::Size& pref_size) override;
503 void CreateNewWindow( 505 void CreateNewWindow(
504 SiteInstance* source_site_instance, 506 SiteInstance* source_site_instance,
505 int32_t route_id, 507 int32_t route_id,
506 int32_t main_frame_route_id, 508 int32_t main_frame_route_id,
507 int32_t main_frame_widget_route_id, 509 int32_t main_frame_widget_route_id,
508 const ViewHostMsg_CreateWindow_Params& params, 510 const ViewHostMsg_CreateWindow_Params& params,
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 // Adds/removes a callback called on creation of each new WebContents. 1404 // Adds/removes a callback called on creation of each new WebContents.
1403 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1405 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1404 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1406 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1405 1407
1406 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1408 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1407 }; 1409 };
1408 1410
1409 } // namespace content 1411 } // namespace content
1410 1412
1411 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1413 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698