OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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 package org.chromium.content.browser.factory; | |
boliu
2017/03/03 18:19:09
why different package?
so there's some layering t
Tima Vaisburd
2017/03/04 02:25:07
This is not done yet.
| |
6 | |
7 import org.chromium.content.browser.ContextSelectionProvider; | |
8 import org.chromium.content_public.browser.WebContents; | |
9 import org.chromium.ui.base.WindowAndroid; | |
10 | |
11 /** | |
12 * A class factory for content browser layer. | |
13 */ | |
14 public class ContentClassFactory { | |
15 private static ContentClassFactory sSingleton; | |
16 | |
17 /** | |
18 * Sets the factory object. | |
19 */ | |
20 public static void set(ContentClassFactory factory) { | |
21 sSingleton = factory; | |
22 } | |
23 | |
24 /** | |
25 * Returns the factory object. | |
26 */ | |
27 public static ContentClassFactory get() { | |
28 return sSingleton; | |
29 } | |
30 | |
31 /** | |
32 * Creates ContextSelectorProvider object. | |
33 */ | |
34 public ContextSelectionProvider createContextSelectionProvider( | |
boliu
2017/03/03 18:19:09
abstract
Tima Vaisburd
2017/03/04 02:25:07
Instead I decides to have a regular |if (!signleto
| |
35 ContextSelectionProvider.Callback callback, WebContents webContents, | |
36 WindowAndroid windowAndroid) { | |
37 // Implemented by a subclass. | |
38 return null; | |
39 } | |
40 } | |
OLD | NEW |