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

Unified Diff: chrome/browser/android/blimp/chrome_blimp_client_context_delegate.h

Issue 2623023002: Remove //chrome as an embedder of blimp. (Closed)
Patch Set: One more rebase for good measure Created 3 years, 11 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/android/blimp/chrome_blimp_client_context_delegate.h
diff --git a/chrome/browser/android/blimp/chrome_blimp_client_context_delegate.h b/chrome/browser/android/blimp/chrome_blimp_client_context_delegate.h
deleted file mode 100644
index e0249f490f1fe00418b3ecd6c048af99a5028c59..0000000000000000000000000000000000000000
--- a/chrome/browser/android/blimp/chrome_blimp_client_context_delegate.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2016 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_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
-#define CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "base/strings/string16.h"
-#include "blimp/client/public/blimp_client_context_delegate.h"
-
-class IdentityProvider;
-class Profile;
-
-namespace blimp {
-namespace client {
-class BlimpClientContext;
-class BlimpContents;
-} // namespace client
-} // namespace blimp
-
-// The BlimpClientContextDelegate for //chrome which provides the necessary
-// functionality required to run Blimp.
-class ChromeBlimpClientContextDelegate
- : public blimp::client::BlimpClientContextDelegate {
- public:
- // Constructs the object and attaches it to the BlimpClientContext that is
- // used for the given profile.
- explicit ChromeBlimpClientContextDelegate(Profile* profile);
- // Unattaches itself from the BlimpClientContext before going away.
- ~ChromeBlimpClientContextDelegate() override;
-
- // BlimpClientContextDelegate implementation.
- void AttachBlimpContentsHelpers(
- blimp::client::BlimpContents* blimp_contents) override;
- void OnAssignmentConnectionAttempted(
- blimp::client::AssignmentRequestResult result,
- const blimp::client::Assignment& assignment) override;
- std::unique_ptr<IdentityProvider> CreateIdentityProvider() override;
- void OnAuthenticationError(const GoogleServiceAuthError& error) override;
- void OnConnected() override;
- void OnEngineDisconnected(int result) override;
- void OnNetworkDisconnected(int result) override;
-
- protected:
- // Show an alert message in the embedder.
- virtual void ShowMessage(const base::string16& msg, bool short_message);
-
- private:
- void OnDisconnected(const base::string16& reason);
-
- // The profile this delegate is used for.
- Profile* profile_;
-
- // The BlimpClientContext this is the delegate for.
- blimp::client::BlimpClientContext* blimp_client_context_;
-
- DISALLOW_COPY_AND_ASSIGN(ChromeBlimpClientContextDelegate);
-};
-
-#endif // CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698