[Ozone-Gbm] Explicitly crash if trying software rendering on GBM
[chromium-blink-merge.git] / content / browser / devtools / shared_worker_devtools_agent_host.h
blob5c9d0ab3f9ba96a5f11128d270b425cb27f6a4f1
1 // Copyright 2014 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_SHARED_WORKER_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_AGENT_HOST_H_
8 #include "content/browser/devtools/worker_devtools_agent_host.h"
10 namespace content {
12 class SharedWorkerInstance;
14 class SharedWorkerDevToolsAgentHost : public WorkerDevToolsAgentHost {
15 public:
16 SharedWorkerDevToolsAgentHost(WorkerId worker_id,
17 const SharedWorkerInstance& shared_worker);
19 // DevToolsAgentHost override.
20 Type GetType() override;
21 std::string GetTitle() override;
22 GURL GetURL() override;
23 bool Activate() override;
24 bool Close() override;
26 bool Matches(const SharedWorkerInstance& other);
28 private:
29 friend class SharedWorkerDevToolsManagerTest;
31 ~SharedWorkerDevToolsAgentHost() override;
32 scoped_ptr<SharedWorkerInstance> shared_worker_;
34 DISALLOW_COPY_AND_ASSIGN(SharedWorkerDevToolsAgentHost);
37 } // namespace content
39 #endif // CONTENT_BROWSER_DEVTOOLS_SHARED_WORKER_DEVTOOLS_AGENT_HOST_H_