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

Side by Side Diff: mojo/shell/dynamic_service_loader.cc

Issue 177183002: Mojo: Include "path/to/foo.mojom.h" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary abspath Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « mojo/shell/dynamic_service_loader.h ('k') | mojo/shell/service_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "mojo/shell/dynamic_service_loader.h" 5 #include "mojo/shell/dynamic_service_loader.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/scoped_native_library.h" 10 #include "base/scoped_native_library.h"
11 #include "base/threading/simple_thread.h" 11 #include "base/threading/simple_thread.h"
12 #include "mojo/shell/context.h" 12 #include "mojo/shell/context.h"
13 #include "mojo/shell/keep_alive.h" 13 #include "mojo/shell/keep_alive.h"
14 #include "mojo/shell/switches.h" 14 #include "mojo/shell/switches.h"
15 #include "mojom/shell.h"
16 15
17 typedef MojoResult (*MojoMainFunction)(MojoHandle pipe); 16 typedef MojoResult (*MojoMainFunction)(MojoHandle pipe);
18 17
19 namespace mojo { 18 namespace mojo {
20 namespace shell { 19 namespace shell {
21 namespace { 20 namespace {
22 21
23 std::string MakeSharedLibraryName(const std::string& file_name) { 22 std::string MakeSharedLibraryName(const std::string& file_name) {
24 #if defined(OS_WIN) 23 #if defined(OS_WIN)
25 return file_name + ".dll"; 24 return file_name + ".dll";
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 DCHECK(it != url_to_load_context_.end()); 141 DCHECK(it != url_to_load_context_.end());
143 142
144 LoadContext* doomed = it->second; 143 LoadContext* doomed = it->second;
145 url_to_load_context_.erase(it); 144 url_to_load_context_.erase(it);
146 145
147 delete doomed; 146 delete doomed;
148 } 147 }
149 148
150 } // namespace shell 149 } // namespace shell
151 } // namespace mojo 150 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/dynamic_service_loader.h ('k') | mojo/shell/service_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698