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

Unified Diff: shell/network_application_loader.h

Issue 782013002: Android: decouple mojo shell from the network service. (Closed) Base URL: https://github.com/domokit/mojo.git@build-rule-for-the-network-service
Patch Set: Rebase. Created 6 years 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: shell/network_application_loader.h
diff --git a/shell/network_application_loader.h b/shell/network_application_loader.h
deleted file mode 100644
index 5544e19083547c871c74e0618f6d131602140bb6..0000000000000000000000000000000000000000
--- a/shell/network_application_loader.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2014 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 SHELL_NETWORK_APPLICATION_LOADER_H_
-#define SHELL_NETWORK_APPLICATION_LOADER_H_
-
-#include "base/containers/scoped_ptr_hash_map.h"
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "mojo/application_manager/application_loader.h"
-#include "mojo/public/cpp/application/application_delegate.h"
-#include "mojo/public/cpp/application/interface_factory.h"
-#include "mojo/services/network/network_context.h"
-
-namespace mojo {
-
-class ApplicationImpl;
-class NetworkService;
-
-namespace shell {
-
-// ApplicationLoader responsible for creating connections to the NetworkService.
-class NetworkApplicationLoader : public ApplicationLoader,
- public ApplicationDelegate,
- public InterfaceFactory<NetworkService> {
- public:
- NetworkApplicationLoader();
- virtual ~NetworkApplicationLoader();
-
- private:
- // ApplicationLoader overrides:
- virtual void Load(ApplicationManager* manager,
- const GURL& url,
- ScopedMessagePipeHandle shell_handle,
- LoadCallback callback) override;
- virtual void OnApplicationError(ApplicationManager* manager,
- const GURL& url) override;
-
- // ApplicationDelegate overrides.
- virtual void Initialize(ApplicationImpl* app) override;
- virtual bool ConfigureIncomingConnection(
- ApplicationConnection* connection) override;
-
- // InterfaceFactory<NetworkService> overrides.
- virtual void Create(ApplicationConnection* connection,
- InterfaceRequest<NetworkService> request) override;
-
- base::ScopedPtrHashMap<uintptr_t, ApplicationImpl> apps_;
- scoped_ptr<NetworkContext> context_;
-
- DISALLOW_COPY_AND_ASSIGN(NetworkApplicationLoader);
-};
-
-} // namespace shell
-} // namespace mojo
-
-#endif // SHELL_NETWORK_APPLICATION_LOADER_H_

Powered by Google App Engine
This is Rietveld 408576698