blob: c802cde0179f96a6b93896f923bf2a06a2a0c486 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (c) 2006-2008 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.
#include <string>
#include "chrome/browser/tab_contents_type.h"
class TabContents;
// Extend from this class to implement a custom tab contents type. See
// TabContents::RegisterFactory.
class TabContentsFactory {
public:
// Returns a new TabContents instance of the associated type.
virtual TabContents* CreateInstance() = 0;
// Returns true if this factory can be used to create a TabContents instance
// capable of handling the given URL. NOTE: the given url can be empty.
virtual bool CanHandleURL(const GURL& url) = 0;
};
|