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

Side by Side Diff: content/public/utility/content_utility_client.h

Issue 862813002: WIP: Prototype OOP V8 PAC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Slight cleanup and report JS memory usage. Created 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_
6 #define CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_ 6 #define CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_
7 7
8 #include "content/public/common/content_client.h" 8 #include "content/public/common/content_client.h"
9 9
10 namespace content { 10 namespace content {
11 class ServiceRegistry;
11 12
12 // Embedder API for participating in renderer logic. 13 // Embedder API for participating in renderer logic.
13 class CONTENT_EXPORT ContentUtilityClient { 14 class CONTENT_EXPORT ContentUtilityClient {
14 public: 15 public:
15 virtual ~ContentUtilityClient() {} 16 virtual ~ContentUtilityClient() {}
16 17
17 // Notifies us that the UtilityThread has been created. 18 // Notifies us that the UtilityThread has been created.
18 virtual void UtilityThreadStarted() {} 19 virtual void UtilityThreadStarted() {}
19 20
20 // Allows the embedder to filter messages. 21 // Allows the embedder to filter messages.
21 virtual bool OnMessageReceived(const IPC::Message& message); 22 virtual bool OnMessageReceived(const IPC::Message& message);
23
24 // Registers Mojo services.
25 virtual void RegisterMojoServices(ServiceRegistry* registry) {}
22 }; 26 };
23 27
24 } // namespace content 28 } // namespace content
25 29
26 #endif // CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_ 30 #endif // CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/common/process_resource_service.mojom ('k') | content/utility/utility_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698