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

Unified Diff: mojo/shell/network_application_loader.h

Issue 775343004: Move //mojo/shell to //shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « mojo/shell/mojo_url_resolver_unittest.cc ('k') | mojo/shell/network_application_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/network_application_loader.h
diff --git a/mojo/shell/network_application_loader.h b/mojo/shell/network_application_loader.h
deleted file mode 100644
index e06d2501e48b49ad8aee0e6c700e1ee5e0bc7a32..0000000000000000000000000000000000000000
--- a/mojo/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 MOJO_SHELL_NETWORK_APPLICATION_LOADER_H_
-#define MOJO_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 // MOJO_SHELL_NETWORK_APPLICATION_LOADER_H_
« no previous file with comments | « mojo/shell/mojo_url_resolver_unittest.cc ('k') | mojo/shell/network_application_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698