blob: 49a2bbf2c5982771a789b2ea1e8f63ad973ed4ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
// Copyright (c) 2011 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 CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
#define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
#pragma once
#include <string>
#include "content/common/content_client.h"
class BrowserRenderProcessHost;
class GURL;
class Profile;
class RenderViewHost;
class TabContents;
namespace content {
class WebUIFactory;
// Embedder API for participating in browser logic.
class ContentBrowserClient {
public:
// Notifies that a new RenderHostView has been created.
virtual void RenderViewHostCreated(RenderViewHost* render_view_host);
// Initialize a RenderViewHost before its CreateRenderView method is called.
virtual void PreCreateRenderView(RenderViewHost* render_view_host,
Profile* profile,
const GURL& url);
// Notifies that a BrowserRenderProcessHost has been created.
virtual void BrowserRenderProcessHostCreated(BrowserRenderProcessHost* host);
// Gets the WebUIFactory which will be responsible for generating WebUIs.
virtual WebUIFactory* GetWebUIFactory();
// Get the effective URL for the given actual URL, to allow an embedder to
// group different url schemes in the same SiteInstance.
virtual GURL GetEffectiveURL(Profile* profile, const GURL& url);
// See RenderViewHostDelegate's comment.
virtual GURL GetAlternateErrorPageURL(const TabContents* tab);
// See CharacterEncoding's comment.
virtual std::string GetCanonicalEncodingNameByAliasName(
const std::string& alias_name);
};
} // namespace content
#endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_
|