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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 1345873003: Expose PageImportanceSignals via WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing null check Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 2f0ef5a8cac2bda91820c17d6b19b53358bd142f..91c19730c7d22e8a07849db833a07140c468aadd 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -32,6 +32,7 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/common/page_importance_signals.h"
#include "content/public/common/renderer_preferences.h"
#include "content/public/common/resource_type.h"
#include "content/public/common/three_d_api_types.h"
@@ -250,6 +251,7 @@ class CONTENT_EXPORT WebContentsImpl
void SetParentNativeViewAccessible(
gfx::NativeViewAccessible accessible_parent) override;
#endif
+ const PageImportanceSignals& GetPageImportanceSignals() const override;
const base::string16& GetTitle() const override;
int32 GetMaxPageID() override;
int32 GetMaxPageIDForSiteInstance(SiteInstance* site_instance) override;
@@ -861,6 +863,7 @@ class CONTENT_EXPORT WebContentsImpl
void OnWebUISend(const GURL& source_url,
const std::string& name,
const base::ListValue& args);
+ void OnUpdatePageImportanceSignals(const PageImportanceSignals& signals);
#if defined(ENABLE_PLUGINS)
void OnPepperInstanceCreated();
void OnPepperInstanceDeleted();
@@ -1307,6 +1310,8 @@ class CONTENT_EXPORT WebContentsImpl
scoped_ptr<RenderWidgetHostInputEventRouter> rwh_input_event_router_;
+ PageImportanceSignals page_importance_signals_;
+
base::WeakPtrFactory<WebContentsImpl> loading_weak_factory_;
DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.cc » ('j') | content/public/browser/web_contents.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698