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

Unified Diff: mojo/shell/package_manager/content_handler_connection.h

Issue 1566253002: Move package_manager into mojo/shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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: mojo/shell/package_manager/content_handler_connection.h
diff --git a/mojo/package_manager/content_handler_connection.h b/mojo/shell/package_manager/content_handler_connection.h
similarity index 76%
rename from mojo/package_manager/content_handler_connection.h
rename to mojo/shell/package_manager/content_handler_connection.h
index 9ca029e6ade3637a42f9010742320b2fdd196b6f..92b5929b8c1a4e69445535d5a0c50a620944ba06 100644
--- a/mojo/package_manager/content_handler_connection.h
+++ b/mojo/shell/package_manager/content_handler_connection.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MOJO_PACKAGE_MANAGER_CONTENT_HANDLER_CONNECTION_H_
-#define MOJO_PACKAGE_MANAGER_CONTENT_HANDLER_CONNECTION_H_
+#ifndef MOJO_SHELL_PACKAGE_MANAGER_CONTENT_HANDLER_CONNECTION_H_
+#define MOJO_SHELL_PACKAGE_MANAGER_CONTENT_HANDLER_CONNECTION_H_
#include <stdint.h>
@@ -18,8 +18,6 @@
namespace mojo {
namespace shell {
class ApplicationManager;
-}
-namespace package_manager {
// A ContentHandlerConnection is responsible for creating and maintaining a
// connection to an app which provides the ContentHandler service.
@@ -31,9 +29,9 @@ class ContentHandlerConnection {
public:
using ClosedCallback = base::Callback<void(ContentHandlerConnection*)>;
// |id| is a unique identifier for this content handler.
- ContentHandlerConnection(shell::ApplicationManager* manager,
- const shell::Identity& source,
- const shell::Identity& content_handler,
+ ContentHandlerConnection(ApplicationManager* manager,
+ const Identity& source,
+ const Identity& content_handler,
uint32_t id,
const ClosedCallback& connection_closed_callback);
@@ -43,7 +41,7 @@ class ContentHandlerConnection {
// Closes the connection and destroys |this| object.
void CloseConnection();
- const shell::Identity& identity() const { return identity_; }
+ const Identity& identity() const { return identity_; }
uint32_t id() const { return id_; }
private:
@@ -52,7 +50,7 @@ class ContentHandlerConnection {
void ApplicationDestructed();
ClosedCallback connection_closed_callback_;
- shell::Identity identity_;
+ Identity identity_;
ContentHandlerPtr content_handler_;
bool connection_closed_;
@@ -63,7 +61,7 @@ class ContentHandlerConnection {
DISALLOW_COPY_AND_ASSIGN(ContentHandlerConnection);
};
-} // namespace package_manager
+} // namespace shell
} // namespace mojo
-#endif // MOJO_PACKAGE_MANAGER_CONTENT_HANDLER_CONNECTION_H_
+#endif // MOJO_SHELL_PACKAGE_MANAGER_CONTENT_HANDLER_CONNECTION_H_

Powered by Google App Engine
This is Rietveld 408576698