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

Unified Diff: blimp/client/core/context/blimp_client_context_impl.h

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration 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: blimp/client/core/context/blimp_client_context_impl.h
diff --git a/blimp/client/core/context/blimp_client_context_impl.h b/blimp/client/core/context/blimp_client_context_impl.h
deleted file mode 100644
index 7c3c55c78311148f34f1f94b11ec7c9979360023..0000000000000000000000000000000000000000
--- a/blimp/client/core/context/blimp_client_context_impl.h
+++ /dev/null
@@ -1,152 +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 BLIMP_CLIENT_CORE_CONTEXT_BLIMP_CLIENT_CONTEXT_IMPL_H_
-#define BLIMP_CLIENT_CORE_CONTEXT_BLIMP_CLIENT_CONTEXT_IMPL_H_
-
-#include <memory>
-#include <string>
-#include <unordered_map>
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-#include "base/single_thread_task_runner.h"
-#include "base/threading/thread.h"
-#include "blimp/client/core/compositor/blob_image_serialization_processor.h"
-#include "blimp/client/core/context/assignment_fetcher.h"
-#include "blimp/client/core/session/client_network_components.h"
-#include "blimp/client/core/session/connection_status.h"
-#include "blimp/client/core/settings/blimp_settings_delegate.h"
-#include "blimp/client/public/blimp_client_context.h"
-#include "blimp/client/public/contents/blimp_contents.h"
-#include "blimp/client/public/session/assignment.h"
-#include "blimp/net/pipe_manager.h"
-#include "url/gurl.h"
-
-namespace blimp {
-namespace client {
-
-class BlimpCompositorDependencies;
-class BlimpContentsManager;
-class BlobChannelFeature;
-class CompositorDependencies;
-class GeolocationFeature;
-class ImeFeature;
-class NavigationFeature;
-class RenderWidgetFeature;
-class SettingsFeature;
-class Settings;
-class TabControlFeature;
-
-// BlimpClientContextImpl is the implementation of the main context-class for
-// the blimp client.
-class BlimpClientContextImpl
- : public BlimpClientContext,
- public BlimpSettingsDelegate,
- public BlobImageSerializationProcessor::ErrorDelegate,
- public NetworkEventObserver {
- public:
- // The |io_thread_task_runner| must be the task runner to use for IO
- // operations.
- // The |file_thread_task_runner| must be the task runner to use for file
- // operations.
- // |pipe_manager| is an optional override. If it's null, a default pipe
- // manager will be created.
- BlimpClientContextImpl(
- scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner,
- std::unique_ptr<CompositorDependencies> compositor_dependencies,
- std::unique_ptr<Settings> settings,
- std::unique_ptr<PipeManager> pipe_manager);
- ~BlimpClientContextImpl() override;
-
- // BlimpClientContext implementation.
- void SetDelegate(BlimpClientContextDelegate* delegate) override;
- std::unique_ptr<BlimpContents> CreateBlimpContents(
- gfx::NativeWindow window) override;
- void Connect() override;
- void ConnectWithAssignment(const Assignment& assignment) override;
-
- // Creates a data object containing data about Blimp to be used for feedback.
- std::unordered_map<std::string, std::string> CreateFeedbackData();
-
- protected:
- // Returns the URL to use for connections to the assigner. Used to construct
- // the AssignmentSource.
- virtual GURL GetAssignerURL();
-
- // BlimpSettingsDelegate implementation.
- IdentitySource* GetIdentitySource() override;
- ConnectionStatus* GetConnectionStatus() override;
-
- Settings* settings() { return settings_.get(); }
-
- private:
- // Called when the AssignmentSource is finished getting an Assignment. Will
- // then call |ConnectWithAssignment| to initiate the actual connection.
- virtual void OnAssignmentReceived(AssignmentRequestResult result,
- const Assignment& assignment);
-
- void RegisterFeatures();
- void InitializeSettings();
-
- // Terminates the active connection held by |net_connections_|.
- // May be called on any thread.
- void DropConnection();
-
- // BlobImageSerializationProcessor::ErrorDelegate implementation.
- void OnImageDecodeError() override;
-
- // NetworkEventObserver implementation.
- void OnConnected() override;
- void OnDisconnected(int result) override;
-
- // Provides functionality from the embedder.
- BlimpClientContextDelegate* delegate_ = nullptr;
-
- // The task runner to use for IO operations.
- scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner_;
-
- // The task runner to use for file operations.
- scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner_;
-
- // A set of dependencies required by all BlimpCompositor instances.
- std::unique_ptr<BlimpCompositorDependencies> blimp_compositor_dependencies_;
-
- // Through this settings are set and retrieved. This should be initialized
- // before settings_feature_.
- std::unique_ptr<Settings> settings_;
-
- // Features to handle all incoming and outgoing protobuf messages.
- std::unique_ptr<BlobChannelFeature> blob_channel_feature_;
- std::unique_ptr<GeolocationFeature> geolocation_feature_;
- std::unique_ptr<ImeFeature> ime_feature_;
- std::unique_ptr<NavigationFeature> navigation_feature_;
- std::unique_ptr<RenderWidgetFeature> render_widget_feature_;
- std::unique_ptr<SettingsFeature> settings_feature_;
- std::unique_ptr<TabControlFeature> tab_control_feature_;
-
- std::unique_ptr<BlimpContentsManager> blimp_contents_manager_;
-
- // Container struct for network components.
- // Must be deleted on the IO thread.
- std::unique_ptr<ClientNetworkComponents> net_components_;
-
- std::unique_ptr<PipeManager> pipe_manager_;
-
- std::unique_ptr<AssignmentFetcher> assignment_fetcher_;
-
- // Connection status to the engine.
- ConnectionStatus connection_status_;
-
- base::WeakPtrFactory<BlimpClientContextImpl> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(BlimpClientContextImpl);
-};
-
-} // namespace client
-} // namespace blimp
-
-#endif // BLIMP_CLIENT_CORE_CONTEXT_BLIMP_CLIENT_CONTEXT_IMPL_H_
« no previous file with comments | « blimp/client/core/context/assignment_fetcher.cc ('k') | blimp/client/core/context/blimp_client_context_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698