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

Side by Side Diff: chrome/browser/chromeos/chrome_interface_factory.h

Issue 2215133002: Change signature of OnConnect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
Patch Set: . Created 4 years, 4 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
« no previous file with comments | « chrome/app/mash/mash_runner.cc ('k') | chrome/browser/chromeos/chrome_interface_factory.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
11 #include "content/public/common/connection_filter.h" 11 #include "content/public/common/connection_filter.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 // InterfaceFactory for creating all services provided by chrome. 15 // InterfaceFactory for creating all services provided by chrome.
16 class ChromeInterfaceFactory : public content::ConnectionFilter { 16 class ChromeInterfaceFactory : public content::ConnectionFilter {
17 public: 17 public:
18 ChromeInterfaceFactory(); 18 ChromeInterfaceFactory();
19 ~ChromeInterfaceFactory() override; 19 ~ChromeInterfaceFactory() override;
20 20
21 private: 21 private:
22 // content::ConnectionFilter: 22 // content::ConnectionFilter:
23 bool OnConnect(shell::Connection* connection, 23 bool OnConnect(const shell::Identity& remote_identity,
24 shell::InterfaceRegistry* registry,
24 shell::Connector* connector) override; 25 shell::Connector* connector) override;
25 26
26 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 27 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
27 28
28 DISALLOW_COPY_AND_ASSIGN(ChromeInterfaceFactory); 29 DISALLOW_COPY_AND_ASSIGN(ChromeInterfaceFactory);
29 }; 30 };
30 31
31 } // namespace chromeos 32 } // namespace chromeos
32 33
33 #endif // CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_ 34 #endif // CHROME_BROWSER_CHROMEOS_CHROME_INTERFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/app/mash/mash_runner.cc ('k') | chrome/browser/chromeos/chrome_interface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698