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

Unified Diff: chrome/browser/ui/webui/settings/md_settings_ui.h

Issue 2255833003: DO NOT COMMIT: hack hack hacking on preloading md-settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: to show dave Created 4 years, 4 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
« no previous file with comments | « chrome/browser/resources/settings/settings.html ('k') | chrome/browser/ui/webui/settings/md_settings_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings/md_settings_ui.h
diff --git a/chrome/browser/ui/webui/settings/md_settings_ui.h b/chrome/browser/ui/webui/settings/md_settings_ui.h
index 6f49d402e08debbdd4f54e15c60ef26ba750007d..ed1ea1f7a791577d1cd93ee1a295977b33a67669 100644
--- a/chrome/browser/ui/webui/settings/md_settings_ui.h
+++ b/chrome/browser/ui/webui/settings/md_settings_ui.h
@@ -5,12 +5,16 @@
#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_MD_SETTINGS_UI_H_
#define CHROME_BROWSER_UI_WEBUI_SETTINGS_MD_SETTINGS_UI_H_
+#include <set>
+#include <string>
#include <unordered_set>
#include "base/macros.h"
+//#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_ui_controller.h"
+#include "content/public/browser/web_ui_data_source.h"
class GURL;
@@ -38,11 +42,23 @@ class MdSettingsUI : public content::WebUIController,
private:
void AddSettingsPageUIHandler(SettingsPageUIHandler* handler);
+ bool RequestFilter(
+ const std::string& path,
+ const content::WebUIDataSource::GotDataCallback& callback);
+
+ void GatherPreloadUrls(const GURL& url, std::vector<GURL>* urls);
+
// Weak references; all |handlers_| are owned by |web_ui()|.
std::unordered_set<SettingsPageUIHandler*> handlers_;
base::Time load_start_time_;
+ content::WebUIDataSource* html_source_;
+
+ //base::WeakPtrFactory<MdSettingsUI> weak_ptr_factory_;
+
+ std::string preloads_;
+
DISALLOW_COPY_AND_ASSIGN(MdSettingsUI);
};
« no previous file with comments | « chrome/browser/resources/settings/settings.html ('k') | chrome/browser/ui/webui/settings/md_settings_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698