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

Side by Side Diff: mojo/shell/package_manager/content_handler_connection.h

Issue 1679573002: Move shell interfaces into the shell.mojom namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
Patch Set: . Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SHELL_PACKAGE_MANAGER_CONTENT_HANDLER_CONNECTION_H_ 5 #ifndef MOJO_SHELL_PACKAGE_MANAGER_CONTENT_HANDLER_CONNECTION_H_
6 #define MOJO_SHELL_PACKAGE_MANAGER_CONTENT_HANDLER_CONNECTION_H_ 6 #define MOJO_SHELL_PACKAGE_MANAGER_CONTENT_HANDLER_CONNECTION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 17 matching lines...) Expand all
28 class ContentHandlerConnection { 28 class ContentHandlerConnection {
29 public: 29 public:
30 using ClosedCallback = base::Callback<void(ContentHandlerConnection*)>; 30 using ClosedCallback = base::Callback<void(ContentHandlerConnection*)>;
31 // |id| is a unique identifier for this content handler. 31 // |id| is a unique identifier for this content handler.
32 ContentHandlerConnection(ApplicationManager* manager, 32 ContentHandlerConnection(ApplicationManager* manager,
33 const Identity& source, 33 const Identity& source,
34 const Identity& content_handler, 34 const Identity& content_handler,
35 uint32_t id, 35 uint32_t id,
36 const ClosedCallback& connection_closed_callback); 36 const ClosedCallback& connection_closed_callback);
37 37
38 void StartApplication(InterfaceRequest<Application> request, 38 void StartApplication(InterfaceRequest<mojom::Application> request,
39 URLResponsePtr response); 39 URLResponsePtr response);
40 40
41 // Closes the connection and destroys |this| object. 41 // Closes the connection and destroys |this| object.
42 void CloseConnection(); 42 void CloseConnection();
43 43
44 const Identity& identity() const { return identity_; } 44 const Identity& identity() const { return identity_; }
45 uint32_t id() const { return id_; } 45 uint32_t id() const { return id_; }
46 46
47 private: 47 private:
48 ~ContentHandlerConnection(); 48 ~ContentHandlerConnection();
49 49
50 void ApplicationDestructed(); 50 void ApplicationDestructed();
51 51
52 ClosedCallback connection_closed_callback_; 52 ClosedCallback connection_closed_callback_;
53 Identity identity_; 53 Identity identity_;
54 54
55 ContentHandlerPtr content_handler_; 55 mojom::ContentHandlerPtr content_handler_;
56 bool connection_closed_; 56 bool connection_closed_;
57 // The id for this content handler. 57 // The id for this content handler.
58 const uint32_t id_; 58 const uint32_t id_;
59 int ref_count_; 59 int ref_count_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(ContentHandlerConnection); 61 DISALLOW_COPY_AND_ASSIGN(ContentHandlerConnection);
62 }; 62 };
63 63
64 } // namespace shell 64 } // namespace shell
65 } // namespace mojo 65 } // namespace mojo
66 66
67 #endif // MOJO_SHELL_PACKAGE_MANAGER_CONTENT_HANDLER_CONNECTION_H_ 67 #endif // MOJO_SHELL_PACKAGE_MANAGER_CONTENT_HANDLER_CONNECTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698