#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
-#if defined(ENABLE_FULL_PRINTING)
+#if defined(ENABLE_PRINT_PREVIEW)
#include "chrome/browser/printing/background_printing_manager.h"
#endif
explicit ProcessDetails(const DataCallback& callback)
: callback_(callback) {}
// MemoryDetails:
- virtual void OnDetailsAvailable() OVERRIDE {
+ void OnDetailsAvailable() override {
const std::vector<ProcessData>& browser_processes = processes();
// [0] means Chrome.
callback_.Run(browser_processes[0]);
}
private:
- virtual ~ProcessDetails() {}
+ ~ProcessDetails() override {}
DataCallback callback_;
prerender_manager->GetAllPrerenderingContents();
web_contents->insert(contentses.begin(), contentses.end());
}
-#if defined(ENABLE_FULL_PRINTING)
+#if defined(ENABLE_PRINT_PREVIEW)
// Add all the pages being background printed.
printing::BackgroundPrintingManager* printing_manager =
g_browser_process->background_printing_manager();
registrar_.Add(this, chrome::NOTIFICATION_RENDERER_V8_HEAP_STATS_COMPUTED,
content::NotificationService::AllSources());
}
- virtual ~RendererDetails() {}
+ ~RendererDetails() override {}
void Request() {
for (std::set<content::WebContents*>::iterator iter = web_contents_.begin();
private:
// NotificationObserver:
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE {
+ void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) override {
const base::ProcessId* pid =
content::Source<const base::ProcessId>(source).ptr();
const ChromeRenderMessageFilter::V8HeapStatsDetails* v8_heap =