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

Unified Diff: chrome/browser/search_engines/search_provider_install_state_impl.h

Issue 2177123003: Move SearchProvider implementation into Blink and make it a no-op. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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: chrome/browser/search_engines/search_provider_install_state_impl.h
diff --git a/chrome/browser/search_engines/search_provider_install_state_impl.h b/chrome/browser/search_engines/search_provider_install_state_impl.h
deleted file mode 100644
index 389855ff54faec9035f5fc64fd5aabfac0b20e58..0000000000000000000000000000000000000000
--- a/chrome/browser/search_engines/search_provider_install_state_impl.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) 2012 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_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_STATE_IMPL_H_
-#define CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_STATE_IMPL_H_
-
-#include "base/callback_forward.h"
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "chrome/browser/search_engines/search_provider_install_data.h"
-#include "chrome/common/search_provider.mojom.h"
-#include "content/public/browser/browser_message_filter.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
-
-class GURL;
-class Profile;
-
-namespace content {
-class RenderProcessHost;
-} // namespace content
-
-// Handles messages regarding search provider install state on the I/O thread.
-class SearchProviderInstallStateImpl
- : public chrome::mojom::SearchProviderInstallState {
- public:
- // Unlike the other methods, the constructor must be called on the UI thread.
- SearchProviderInstallStateImpl(int render_process_id, Profile* profile);
- ~SearchProviderInstallStateImpl() override;
-
- static void Create(int render_process_id,
- Profile* profile,
- chrome::mojom::SearchProviderInstallStateRequest request);
-
- private:
- void BindOnIOThread(chrome::mojom::SearchProviderInstallStateRequest request);
-
- // Figures out the install state for the search provider.
- chrome::mojom::InstallState GetSearchProviderInstallState(
- const GURL& page_location,
- const GURL& requested_host);
-
- // Starts handling the message requesting the search provider install state.
- // chrome::mojom::SearchProviderInstallState override.
- void GetInstallState(const GURL& page_location,
- const GURL& requested_host,
- const GetInstallStateCallback& callback) override;
-
- // Sends the reply message about the search provider install state.
- void ReplyWithProviderInstallState(const GURL& page_location,
- const GURL& requested_host,
- const GetInstallStateCallback& callback);
-
- // Used to do a load and get information about install states.
- SearchProviderInstallData provider_data_;
-
- // Copied from the profile since the profile can't be accessed on the I/O
- // thread.
- const bool is_off_the_record_;
-
- mojo::StrongBinding<chrome::mojom::SearchProviderInstallState> binding_;
-
- // Used to schedule invocations of ReplyWithProviderInstallState.
- base::WeakPtrFactory<SearchProviderInstallStateImpl> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(SearchProviderInstallStateImpl);
-};
-
-#endif // CHROME_BROWSER_SEARCH_ENGINES_SEARCH_PROVIDER_INSTALL_STATE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698