// 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 #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; };