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

Side by Side Diff: ui/base/dragdrop/os_exchange_data_provider_factory.h

Issue 2179813003: Allow OSExchangeData::Provider to be overridden at run time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete that. ;_; 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_FACTORY_H_
6 #define UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_FACTORY_H_
7
8 #include "ui/base/dragdrop/os_exchange_data.h"
9 #include "ui/base/ui_base_export.h"
10
11 namespace ui {
12
13 // Builds OSExchangeDataProviders. We need to be able to switch providers at
14 // runtime based on the configuration flags. If no factory is set,
15 // CreateProvider() will default to the current operating system's default.
16 class UI_BASE_EXPORT OSExchangeDataProviderFactory {
17 public:
18 class Factory {
19 public:
20 virtual OSExchangeData::Provider* BuildProvider() = 0;
sky 2016/07/25 22:44:56 Does it make sense for this or CreateProvider to r
Elliot Glaysher 2016/07/25 22:55:52 Added unique_ptr here, and then threaded that thro
21 };
22
23 // Sets the factory which builds the providers.
24 static void SetFactory(Factory* factory);
25
26 // Creates a Provider based on the current configuration.
27 static OSExchangeData::Provider* CreateProvider();
28 };
29
30 } // namespace ui
31
32 #endif // UI_BASE_DRAGDROP_OS_EXCHANGE_DATA_PROVIDER_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_builder_mac.mm ('k') | ui/base/dragdrop/os_exchange_data_provider_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698