| 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);
|
| };
|
|
|
|
|