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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 11194043: Report load progress for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 1 month 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 | « content/public/browser/web_contents_delegate.h ('k') | content/renderer/render_view_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) 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_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 // Adds the given file chooser request to the file_chooser_completion_ queue 271 // Adds the given file chooser request to the file_chooser_completion_ queue
272 // (see that var for more) and requests the chooser be displayed if there are 272 // (see that var for more) and requests the chooser be displayed if there are
273 // no other waiting items in the queue. 273 // no other waiting items in the queue.
274 // 274 //
275 // Returns true if the chooser was successfully scheduled. False means we 275 // Returns true if the chooser was successfully scheduled. False means we
276 // didn't schedule anything. 276 // didn't schedule anything.
277 bool ScheduleFileChooser(const FileChooserParams& params, 277 bool ScheduleFileChooser(const FileChooserParams& params,
278 WebKit::WebFileChooserCompletion* completion); 278 WebKit::WebFileChooserCompletion* completion);
279 279
280 // Sets whether the renderer should report load progress to the browser.
281 void SetReportLoadProgressEnabled(bool enabled);
282
283 old::GuestToEmbedderChannel* GetGuestToEmbedderChannel() const; 280 old::GuestToEmbedderChannel* GetGuestToEmbedderChannel() const;
284 void SetGuestToEmbedderChannel(old::GuestToEmbedderChannel* channel); 281 void SetGuestToEmbedderChannel(old::GuestToEmbedderChannel* channel);
285 PP_Instance guest_pp_instance() const { return guest_pp_instance_; } 282 PP_Instance guest_pp_instance() const { return guest_pp_instance_; }
286 void set_guest_pp_instance(PP_Instance instance) { 283 void set_guest_pp_instance(PP_Instance instance) {
287 guest_pp_instance_ = instance; 284 guest_pp_instance_ = instance;
288 } 285 }
289 void set_guest_graphics_resource(const ppapi::HostResource& resource) { 286 void set_guest_graphics_resource(const ppapi::HostResource& resource) {
290 guest_graphics_resource_ = resource; 287 guest_graphics_resource_ = resource;
291 } 288 }
292 const ppapi::HostResource& guest_graphics_resource() const { 289 const ppapi::HostResource& guest_graphics_resource() const {
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 // nonempty, the first item represents the currently running file chooser 1463 // nonempty, the first item represents the currently running file chooser
1467 // callback, and the remaining elements are the other file chooser completion 1464 // callback, and the remaining elements are the other file chooser completion
1468 // still waiting to be run (in order). 1465 // still waiting to be run (in order).
1469 struct PendingFileChooser; 1466 struct PendingFileChooser;
1470 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; 1467 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_;
1471 1468
1472 // The current directory enumeration callback 1469 // The current directory enumeration callback
1473 std::map<int, WebKit::WebFileChooserCompletion*> enumeration_completions_; 1470 std::map<int, WebKit::WebFileChooserCompletion*> enumeration_completions_;
1474 int enumeration_completion_id_; 1471 int enumeration_completion_id_;
1475 1472
1473 // Reports load progress to the browser.
1474 scoped_ptr<LoadProgressTracker> load_progress_tracker_;
1475
1476 // The SessionStorage namespace that we're assigned to has an ID, and that ID 1476 // The SessionStorage namespace that we're assigned to has an ID, and that ID
1477 // is passed to us upon creation. WebKit asks for this ID upon first use and 1477 // is passed to us upon creation. WebKit asks for this ID upon first use and
1478 // uses it whenever asking the browser process to allocate new storage areas. 1478 // uses it whenever asking the browser process to allocate new storage areas.
1479 int64 session_storage_namespace_id_; 1479 int64 session_storage_namespace_id_;
1480 1480
1481 // The total number of unrequested popups that exist and can be followed back 1481 // The total number of unrequested popups that exist and can be followed back
1482 // to a common opener. This count is shared among all RenderViews created with 1482 // to a common opener. This count is shared among all RenderViews created with
1483 // createView(). All popups are treated as unrequested until specifically 1483 // createView(). All popups are treated as unrequested until specifically
1484 // instructed otherwise by the Browser process. 1484 // instructed otherwise by the Browser process.
1485 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_; 1485 scoped_refptr<SharedRenderViewCounter> shared_popup_counter_;
1486 1486
1487 // Whether this is a top level window (instead of a popup). Top level windows 1487 // Whether this is a top level window (instead of a popup). Top level windows
1488 // shouldn't count against their own |shared_popup_counter_|. 1488 // shouldn't count against their own |shared_popup_counter_|.
1489 bool decrement_shared_popup_at_destruction_; 1489 bool decrement_shared_popup_at_destruction_;
1490 1490
1491 // Stores edit commands associated to the next key event. 1491 // Stores edit commands associated to the next key event.
1492 // Shall be cleared as soon as the next key event is processed. 1492 // Shall be cleared as soon as the next key event is processed.
1493 EditCommands edit_commands_; 1493 EditCommands edit_commands_;
1494 1494
1495 // Allows Web UI pages (new tab page, etc.) to talk to the browser. The JS 1495 // Allows Web UI pages (new tab page, etc.) to talk to the browser. The JS
1496 // object is only exposed when Web UI bindings are enabled. 1496 // object is only exposed when Web UI bindings are enabled.
1497 scoped_ptr<WebUIBindings> web_ui_bindings_; 1497 scoped_ptr<WebUIBindings> web_ui_bindings_;
1498 1498
1499 // The external popup for the currently showing select popup. 1499 // The external popup for the currently showing select popup.
1500 scoped_ptr<ExternalPopupMenu> external_popup_menu_; 1500 scoped_ptr<ExternalPopupMenu> external_popup_menu_;
1501 1501
1502 // The node that the context menu was pressed over. 1502 // The node that the context menu was pressed over.
1503 WebKit::WebNode context_menu_node_; 1503 WebKit::WebNode context_menu_node_;
1504 1504
1505 // Reports load progress to the browser.
1506 scoped_ptr<LoadProgressTracker> load_progress_tracker_;
1507
1508 // All the registered observers. We expect this list to be small, so vector 1505 // All the registered observers. We expect this list to be small, so vector
1509 // is fine. 1506 // is fine.
1510 ObserverList<RenderViewObserver> observers_; 1507 ObserverList<RenderViewObserver> observers_;
1511 1508
1512 // Used to inform didChangeSelection() when it is called in the context 1509 // Used to inform didChangeSelection() when it is called in the context
1513 // of handling a ViewMsg_SelectRange IPC. 1510 // of handling a ViewMsg_SelectRange IPC.
1514 bool handling_select_range_; 1511 bool handling_select_range_;
1515 1512
1516 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. 1513 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface.
1517 scoped_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; 1514 scoped_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 // use the Observer interface to filter IPC messages and receive frame change 1586 // use the Observer interface to filter IPC messages and receive frame change
1590 // notifications. 1587 // notifications.
1591 // --------------------------------------------------------------------------- 1588 // ---------------------------------------------------------------------------
1592 1589
1593 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1590 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1594 }; 1591 };
1595 1592
1596 } // namespace content 1593 } // namespace content
1597 1594
1598 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1595 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698