| Index: components/devtools_discovery/devtools_discovery_manager.h
|
| diff --git a/components/devtools_discovery/devtools_discovery_manager.h b/components/devtools_discovery/devtools_discovery_manager.h
|
| deleted file mode 100644
|
| index 8887f7694479ba60904c0ee1e2689c1cba9c2d44..0000000000000000000000000000000000000000
|
| --- a/components/devtools_discovery/devtools_discovery_manager.h
|
| +++ /dev/null
|
| @@ -1,59 +0,0 @@
|
| -// Copyright 2015 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#ifndef COMPONENTS_DEVTOOLS_DISCOVERY_DEVTOOLS_DISCOVERY_MANAGER_H_
|
| -#define COMPONENTS_DEVTOOLS_DISCOVERY_DEVTOOLS_DISCOVERY_MANAGER_H_
|
| -
|
| -#include <memory>
|
| -#include <string>
|
| -
|
| -#include "base/macros.h"
|
| -#include "base/memory/singleton.h"
|
| -#include "base/values.h"
|
| -#include "content/public/browser/devtools_agent_host.h"
|
| -
|
| -namespace devtools_discovery {
|
| -
|
| -class DevToolsDiscoveryManager {
|
| - public:
|
| - class Provider {
|
| - public:
|
| - virtual ~Provider() {}
|
| -
|
| - virtual content::DevToolsAgentHost::List GetDescriptors() = 0;
|
| - };
|
| -
|
| - using CreateCallback = base::Callback<
|
| - scoped_refptr<content::DevToolsAgentHost>(const GURL& url)>;
|
| -
|
| - // Returns single instance of this class. The instance is destroyed on the
|
| - // browser main loop exit so this method MUST NOT be called after that point.
|
| - static DevToolsDiscoveryManager* GetInstance();
|
| -
|
| - void AddProvider(std::unique_ptr<Provider> provider);
|
| - void SetCreateCallback(const CreateCallback& callback);
|
| - // Caller takes ownership of created descriptors.
|
| - content::DevToolsAgentHost::List GetDescriptors();
|
| - scoped_refptr<content::DevToolsAgentHost> CreateNew(const GURL& url);
|
| -
|
| - // Handles Browser.createTarget only.
|
| - std::unique_ptr<base::DictionaryValue> HandleCreateTargetCommand(
|
| - base::DictionaryValue* command_dict);
|
| -
|
| - private:
|
| - friend struct base::DefaultSingletonTraits<DevToolsDiscoveryManager>;
|
| -
|
| - DevToolsDiscoveryManager();
|
| - ~DevToolsDiscoveryManager();
|
| - content::DevToolsAgentHost::List GetDescriptorsFromProviders();
|
| -
|
| - std::vector<Provider*> providers_;
|
| - CreateCallback create_callback_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(DevToolsDiscoveryManager);
|
| -};
|
| -
|
| -} // namespace devtools_discovery
|
| -
|
| -#endif // COMPONENTS_DEVTOOLS_DISCOVERY_DEVTOOLS_DISCOVERY_MANAGER_H_
|
|
|