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

Side by Side Diff: mojo/application/public/cpp/lib/application_test_base.cc

Issue 1244233002: Allow trusted brokers to restrict connections for spawned applications to whitelisted applications … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 5 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 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/application/public/cpp/application_test_base.h" 5 #include "mojo/application/public/cpp/application_test_base.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "mojo/application/public/cpp/application_impl.h" 9 #include "mojo/application/public/cpp/application_impl.h"
10 #include "mojo/application/public/interfaces/application.mojom.h" 10 #include "mojo/application/public/interfaces/application.mojom.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Application implementation. 42 // Application implementation.
43 void Initialize(ShellPtr shell, const mojo::String& url) override { 43 void Initialize(ShellPtr shell, const mojo::String& url) override {
44 g_url = url; 44 g_url = url;
45 g_application_request = binding_.Unbind(); 45 g_application_request = binding_.Unbind();
46 g_shell = shell.Pass(); 46 g_shell = shell.Pass();
47 } 47 }
48 48
49 void AcceptConnection(const String& requestor_url, 49 void AcceptConnection(const String& requestor_url,
50 InterfaceRequest<ServiceProvider> services, 50 InterfaceRequest<ServiceProvider> services,
51 ServiceProviderPtr exposed_services, 51 ServiceProviderPtr exposed_services,
52 Array<String> allowed_interfaces,
52 const String& url) override { 53 const String& url) override {
53 MOJO_CHECK(false); 54 MOJO_CHECK(false);
54 } 55 }
55 56
56 void OnQuitRequested(const Callback<void(bool)>& callback) override { 57 void OnQuitRequested(const Callback<void(bool)>& callback) override {
57 MOJO_CHECK(false); 58 MOJO_CHECK(false);
58 } 59 }
59 60
60 Binding<Application> binding_; 61 Binding<Application> binding_;
61 }; 62 };
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 Environment::DestroyDefaultRunLoop(); 143 Environment::DestroyDefaultRunLoop();
143 } 144 }
144 145
145 bool ApplicationTestBase::ShouldCreateDefaultRunLoop() { 146 bool ApplicationTestBase::ShouldCreateDefaultRunLoop() {
146 return true; 147 return true;
147 } 148 }
148 149
149 150
150 } // namespace test 151 } // namespace test
151 } // namespace mojo 152 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698