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

Side by Side Diff: content/shell/browser/layout_test/layout_test_content_browser_client.cc

Issue 938403005: Make it possible for a navigator.connect service to receive messages as base::Value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-c-message-as-values-pass-flag
Patch Set: mention bug Created 5 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
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 "content/shell/browser/layout_test/layout_test_content_browser_client.h " 5 #include "content/shell/browser/layout_test/layout_test_content_browser_client.h "
6 6
7 #include "content/public/browser/browser_context.h" 7 #include "content/public/browser/browser_context.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "content/public/browser/navigator_connect_context.h"
9 #include "content/public/browser/render_process_host.h" 10 #include "content/public/browser/render_process_host.h"
10 #include "content/public/browser/storage_partition.h" 11 #include "content/public/browser/storage_partition.h"
11 #include "content/shell/browser/layout_test/layout_test_browser_context.h" 12 #include "content/shell/browser/layout_test/layout_test_browser_context.h"
12 #include "content/shell/browser/layout_test/layout_test_message_filter.h" 13 #include "content/shell/browser/layout_test/layout_test_message_filter.h"
14 #include "content/shell/browser/layout_test/layout_test_navigator_connect_servic e_factory.h"
13 #include "content/shell/browser/layout_test/layout_test_notification_manager.h" 15 #include "content/shell/browser/layout_test/layout_test_notification_manager.h"
14 #include "content/shell/browser/shell_browser_context.h" 16 #include "content/shell/browser/shell_browser_context.h"
15 #include "content/shell/common/shell_messages.h" 17 #include "content/shell/common/shell_messages.h"
16 #include "content/shell/common/webkit_test_helpers.h" 18 #include "content/shell/common/webkit_test_helpers.h"
17 19
18 namespace content { 20 namespace content {
19 namespace { 21 namespace {
20 22
21 LayoutTestContentBrowserClient* g_layout_test_browser_client; 23 LayoutTestContentBrowserClient* g_layout_test_browser_client;
22 24
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 requesting_frame, 103 requesting_frame,
102 user_gesture, 104 user_gesture,
103 result_callback); 105 result_callback);
104 } 106 }
105 107
106 PlatformNotificationService* 108 PlatformNotificationService*
107 LayoutTestContentBrowserClient::GetPlatformNotificationService() { 109 LayoutTestContentBrowserClient::GetPlatformNotificationService() {
108 return layout_test_notification_manager_.get(); 110 return layout_test_notification_manager_.get();
109 } 111 }
110 112
113 void LayoutTestContentBrowserClient::GetAdditionalNavigatorConnectServices(
114 const scoped_refptr<NavigatorConnectContext>& context) {
115 context->AddFactory(
116 make_scoped_ptr(new LayoutTestNavigatorConnectServiceFactory));
117 }
118
111 } // namespace content 119 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698