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

Unified Diff: content/browser/web_contents/web_contents_view_aura_browsertest.cc

Issue 58343006: Rename WebContentsScreenshotManager to NavigationEntryScreenshotManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove TODO. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/frame_host/web_contents_screenshot_manager.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_view_aura_browsertest.cc
diff --git a/content/browser/web_contents/web_contents_view_aura_browsertest.cc b/content/browser/web_contents/web_contents_view_aura_browsertest.cc
index 39ff8934debe30a34e9c85e5cf21b537473c2c05..76cf05d91a8ede0701492447e0cf07f0865f7274 100644
--- a/content/browser/web_contents/web_contents_view_aura_browsertest.cc
+++ b/content/browser/web_contents/web_contents_view_aura_browsertest.cc
@@ -14,7 +14,7 @@
#endif
#include "content/browser/frame_host/navigation_controller_impl.h"
#include "content/browser/frame_host/navigation_entry_impl.h"
-#include "content/browser/frame_host/web_contents_screenshot_manager.h"
+#include "content/browser/frame_host/navigation_entry_screenshot_manager.h"
#include "content/browser/renderer_host/render_view_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/web_contents_observer.h"
@@ -33,10 +33,10 @@
namespace content {
// This class keeps track of the RenderViewHost whose screenshot was captured.
-class ScreenshotTracker : public WebContentsScreenshotManager {
+class ScreenshotTracker : public NavigationEntryScreenshotManager {
public:
explicit ScreenshotTracker(NavigationControllerImpl* controller)
- : WebContentsScreenshotManager(controller),
+ : NavigationEntryScreenshotManager(controller),
screenshot_taken_for_(NULL),
waiting_for_screenshots_(0) {
}
@@ -67,18 +67,18 @@ class ScreenshotTracker : public WebContentsScreenshotManager {
}
private:
- // Overridden from WebContentsScreenshotManager:
+ // Overridden from NavigationEntryScreenshotManager:
virtual void TakeScreenshotImpl(RenderViewHost* host,
NavigationEntryImpl* entry) OVERRIDE {
++waiting_for_screenshots_;
screenshot_taken_for_ = host;
- WebContentsScreenshotManager::TakeScreenshotImpl(host, entry);
+ NavigationEntryScreenshotManager::TakeScreenshotImpl(host, entry);
}
virtual void OnScreenshotSet(NavigationEntryImpl* entry) OVERRIDE {
--waiting_for_screenshots_;
screenshot_set_[entry] = true;
- WebContentsScreenshotManager::OnScreenshotSet(entry);
+ NavigationEntryScreenshotManager::OnScreenshotSet(entry);
if (waiting_for_screenshots_ == 0 && message_loop_runner_.get())
message_loop_runner_->Quit();
}
« no previous file with comments | « content/browser/frame_host/web_contents_screenshot_manager.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698