Respond with QuotaExceededError when IndexedDB has no disk space on open.
[chromium-blink-merge.git] / content / browser / devtools / devtools_external_agent_proxy_impl.h
blobcf025ec7b4f036a65936944c3a64a73718533ee4
1 // Copyright (c) 2013 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.
5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_EXTERNAL_AGENT_PROXY_IMPL_H
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_EXTERNAL_AGENT_PROXY_IMPL_H
8 #include "base/memory/ref_counted.h"
9 #include "content/public/browser/devtools_external_agent_proxy.h"
11 namespace content {
13 class DevToolsExternalAgentProxyImpl
14 : public DevToolsExternalAgentProxy {
15 public:
16 explicit DevToolsExternalAgentProxyImpl(
17 DevToolsExternalAgentProxyDelegate* delegate);
18 virtual ~DevToolsExternalAgentProxyImpl();
20 // DevToolsExternalAgentProxy implementation.
21 virtual scoped_refptr<DevToolsAgentHost> GetAgentHost() OVERRIDE;
22 virtual void DispatchOnClientHost(const std::string& message) OVERRIDE;
23 virtual void ConnectionClosed() OVERRIDE;
25 private:
26 class ForwardingAgentHost;
28 scoped_refptr<ForwardingAgentHost> agent_host_;
30 DISALLOW_COPY_AND_ASSIGN(DevToolsExternalAgentProxyImpl);
33 } // namespace content
35 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_EXTERNAL_AGENT_PROXY_IMPL_H