Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / task_management / providers / web_contents / guest_task.h
blob94756a26ec99e6eab58cc0cab88980bf82d042bc
1 // Copyright 2015 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 CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_GUEST_TASK_H_
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_GUEST_TASK_H_
8 #include "chrome/browser/task_management/providers/web_contents/renderer_task.h"
10 namespace task_management {
12 // Defines a concrete RendererTask that represents WebContents owned by the
13 // GuestViewBase which represents a <*view> tag that is a browser plugin guest.
14 class GuestTask : public RendererTask {
15 public:
16 explicit GuestTask(content::WebContents* web_contents);
17 ~GuestTask() override;
19 // task_management::RendererTask:
20 void OnTitleChanged(content::NavigationEntry* entry) override;
21 void OnFaviconChanged() override;
22 Type GetType() const override;
24 private:
25 base::string16 GetCurrentTitle(content::WebContents* web_contents) const;
27 DISALLOW_COPY_AND_ASSIGN(GuestTask);
30 } // namespace task_management
32 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_GUEST_TASK_H_