Respond with QuotaExceededError when IndexedDB has no disk space on open.
[chromium-blink-merge.git] / content / browser / devtools / ipc_devtools_agent_host.cc
blobc7cd3c386f8309c65d467df13be51e56de348303
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 #include "content/browser/devtools/ipc_devtools_agent_host.h"
7 #include "content/common/devtools_messages.h"
9 namespace content {
11 void IPCDevToolsAgentHost::Attach() {
12 SendMessageToAgent(new DevToolsAgentMsg_Attach(MSG_ROUTING_NONE));
13 OnClientAttached();
16 void IPCDevToolsAgentHost::Detach() {
17 SendMessageToAgent(new DevToolsAgentMsg_Detach(MSG_ROUTING_NONE));
18 OnClientDetached();
21 void IPCDevToolsAgentHost::DispatchOnInspectorBackend(
22 const std::string& message) {
23 SendMessageToAgent(new DevToolsAgentMsg_DispatchOnInspectorBackend(
24 MSG_ROUTING_NONE, message));
27 void IPCDevToolsAgentHost::InspectElement(int x, int y) {
28 SendMessageToAgent(new DevToolsAgentMsg_InspectElement(MSG_ROUTING_NONE,
29 x, y));
32 IPCDevToolsAgentHost::~IPCDevToolsAgentHost() {
35 void IPCDevToolsAgentHost::Reattach(const std::string& saved_agent_state) {
36 SendMessageToAgent(new DevToolsAgentMsg_Reattach(
37 MSG_ROUTING_NONE,
38 saved_agent_state));
39 OnClientAttached();
42 } // namespace content