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

Unified Diff: chrome/browser/ui/webui/popular_sites_internals_message_handler.h

Issue 2457033003: Add chrome://popular-sites-internals/ to iOS. (Closed)
Patch Set: Break out ...Client. Created 4 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 | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/webui/popular_sites_internals_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/popular_sites_internals_message_handler.h
diff --git a/chrome/browser/ui/webui/popular_sites_internals_message_handler.h b/chrome/browser/ui/webui/popular_sites_internals_message_handler.h
deleted file mode 100644
index 700de05e6b5e2a5d568ca270b5e99ceeb7118dd9..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/popular_sites_internals_message_handler.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_WEBUI_POPULAR_SITES_INTERNALS_MESSAGE_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_POPULAR_SITES_INTERNALS_MESSAGE_HANDLER_H_
-
-#include <memory>
-#include <string>
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "content/public/browser/web_ui_message_handler.h"
-
-namespace base {
-class ListValue;
-} // namespace base
-
-namespace ntp_tiles {
-class PopularSites;
-} // namespace ntp_tiles
-
-// The implementation for the chrome://popular-sites-internals page.
-class PopularSitesInternalsMessageHandler
- : public content::WebUIMessageHandler {
- public:
- PopularSitesInternalsMessageHandler();
- ~PopularSitesInternalsMessageHandler() override;
-
- private:
- // content::WebUIMessageHandler:
- void RegisterMessages() override;
-
- void HandleRegisterForEvents(const base::ListValue* args);
- void HandleUpdate(const base::ListValue* args);
- void HandleViewJson(const base::ListValue* args);
-
- void SendOverrides();
- void SendDownloadResult(bool success);
- void SendSites();
- void SendJson(const std::string& json);
-
- void OnPopularSitesAvailable(bool explicit_request, bool success);
-
- std::unique_ptr<ntp_tiles::PopularSites> popular_sites_;
-
- base::WeakPtrFactory<PopularSitesInternalsMessageHandler> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(PopularSitesInternalsMessageHandler);
-};
-
-#endif // CHROME_BROWSER_UI_WEBUI_POPULAR_SITES_INTERNALS_MESSAGE_HANDLER_H_
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/webui/popular_sites_internals_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698