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

Side by Side Diff: trunk/src/mojo/shell/app_container.h

Issue 62103015: Revert 234975 "Work in progress for end-to-end bindings" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_APP_CONTAINER_H_ 5 #ifndef MOJO_SHELL_APP_CONTAINER_H_
6 #define MOJO_SHELL_APP_CONTAINER_H_ 6 #define MOJO_SHELL_APP_CONTAINER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "mojo/examples/hello_world_service/hello_world_service_impl.h"
12 #include "mojo/public/system/core.h" 11 #include "mojo/public/system/core.h"
13 #include "mojo/shell/loader.h" 12 #include "mojo/shell/loader.h"
14 13
15 namespace base { 14 namespace base {
16 class FilePath; 15 class FilePath;
17 class Thread; 16 class Thread;
18 } 17 }
19 18
20 namespace mojo { 19 namespace mojo {
21 namespace services { 20 namespace services {
(...skipping 14 matching lines...) Expand all
36 private: 35 private:
37 // From Loader::Delegate 36 // From Loader::Delegate
38 virtual void DidCompleteLoad(const GURL& app_url, 37 virtual void DidCompleteLoad(const GURL& app_url,
39 const base::FilePath& app_path) OVERRIDE; 38 const base::FilePath& app_path) OVERRIDE;
40 39
41 void AppCompleted(); 40 void AppCompleted();
42 41
43 Context* context_; 42 Context* context_;
44 scoped_ptr<Loader::Job> request_; 43 scoped_ptr<Loader::Job> request_;
45 scoped_ptr<base::Thread> thread_; 44 scoped_ptr<base::Thread> thread_;
46 scoped_ptr<examples::HelloWorldServiceImpl> hello_world_service_;
47 scoped_ptr<services::NativeViewportController> native_viewport_controller_; 45 scoped_ptr<services::NativeViewportController> native_viewport_controller_;
48 46
47 // Following members are valid only on app thread.
48 Handle shell_handle_;
49
49 base::WeakPtrFactory<AppContainer> weak_factory_; 50 base::WeakPtrFactory<AppContainer> weak_factory_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(AppContainer); 52 DISALLOW_COPY_AND_ASSIGN(AppContainer);
52 }; 53 };
53 54
54 } // namespace shell 55 } // namespace shell
55 } // namespace mojo 56 } // namespace mojo
56 57
57 #endif // MOJO_SHELL_APP_CONTAINER_H_ 58 #endif // MOJO_SHELL_APP_CONTAINER_H_
OLDNEW
« no previous file with comments | « trunk/src/mojo/public/bindings/mojom_bindings_generator.gypi ('k') | trunk/src/mojo/shell/app_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698