Commit a8780a99 authored by sclittle's avatar sclittle Committed by Commit bot

Changed previews component to be a layered component.

This will make it easier to add a content/ directory to the previews
component later.

BUG=

Review-Url: https://codereview.chromium.org/2333003002
Cr-Commit-Position: refs/heads/master@{#419310}
parent 085cf007
......@@ -1339,7 +1339,7 @@ split_static_library("browser") {
"//components/policy:generated",
"//components/policy/core/browser",
"//components/policy/proto",
"//components/previews",
"//components/previews/core",
"//components/profile_metrics",
"//components/proxy_config",
"//components/proxy_config",
......
......@@ -20,7 +20,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "components/offline_pages/offline_page_model.h"
#include "components/previews/previews_experiments.h"
#include "components/previews/core/previews_experiments.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/resource_request_info.h"
#include "content/public/browser/web_contents.h"
......
......@@ -26,7 +26,7 @@
#include "chrome/test/base/testing_profile_manager.h"
#include "components/offline_pages/client_namespace_constants.h"
#include "components/offline_pages/offline_page_model_impl.h"
#include "components/previews/previews_experiments.h"
#include "components/previews/core/previews_experiments.h"
#include "components/variations/variations_associated_data.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/resource_request_info.h"
......
......@@ -32,7 +32,7 @@
#include "components/offline_pages/offline_page_model.h"
#include "components/offline_pages/offline_page_test_archiver.h"
#include "components/offline_pages/offline_page_types.h"
#include "components/previews/previews_experiments.h"
#include "components/previews/core/previews_experiments.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"
#include "net/base/net_errors.h"
......
......@@ -4,7 +4,7 @@
#include "chrome/browser/previews/previews_service.h"
#include "components/previews/previews_ui_service.h"
#include "components/previews/core/previews_ui_service.h"
#include "content/public/browser/browser_thread.h"
PreviewsService::PreviewsService() {
......
......@@ -51,8 +51,8 @@
#include "components/prefs/pref_filter.h"
#include "components/prefs/pref_member.h"
#include "components/prefs/pref_service.h"
#include "components/previews/previews_io_data.h"
#include "components/previews/previews_ui_service.h"
#include "components/previews/core/previews_io_data.h"
#include "components/previews/core/previews_ui_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/cookie_store_factory.h"
#include "content/public/browser/notification_service.h"
......
......@@ -74,7 +74,7 @@
#include "components/policy/core/common/cloud/policy_header_service.h"
#include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
#include "components/prefs/pref_service.h"
#include "components/previews/previews_io_data.h"
#include "components/previews/core/previews_io_data.h"
#include "components/signin/core/common/signin_pref_names.h"
#include "components/sync/driver/pref_names.h"
#include "components/url_formatter/url_fixer.h"
......
......@@ -112,7 +112,7 @@ test("components_unittests") {
"//components/password_manager/sync/browser:unit_tests",
"//components/precache/core:unit_tests",
"//components/prefs:unit_tests",
"//components/previews:unit_tests",
"//components/previews/core:unit_tests",
"//components/proxy_config:unit_tests",
"//components/query_parser:unit_tests",
"//components/rappor:unit_tests",
......
......@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
static_library("previews") {
static_library("core") {
sources = [
"previews_data_savings.cc",
"previews_data_savings.h",
......@@ -31,7 +31,7 @@ source_set("unit_tests") {
]
deps = [
":previews",
":core",
"//base",
"//base/test:test_support",
"//components/data_reduction_proxy/core/common",
......
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/previews/previews_data_savings.h"
#include "components/previews/core/previews_data_savings.h"
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PREVIEWS_PREVIEWS_DATA_SAVINGS_H_
#define CHROME_BROWSER_PREVIEWS_PREVIEWS_DATA_SAVINGS_H_
#ifndef COMPONENTS_PREVIEWS_CORE_PREVIEWS_DATA_SAVINGS_H_
#define COMPONENTS_PREVIEWS_CORE_PREVIEWS_DATA_SAVINGS_H_
#include <stdint.h>
......@@ -48,4 +48,4 @@ class PreviewsDataSavings {
} // namespace previews
#endif // CHROME_BROWSER_PREVIEWS_PREVIEWS_DATA_SAVINGS_H_
#endif // COMPONENTS_PREVIEWS_CORE_PREVIEWS_DATA_SAVINGS_H_
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/previews/previews_data_savings.h"
#include "components/previews/core/previews_data_savings.h"
#include <stdint.h>
......
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/previews/previews_experiments.h"
#include "components/previews/core/previews_experiments.h"
#include <map>
#include <string>
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_PREVIEWS_PREVIEWS_EXPERIMENTS_H_
#define COMPONENTS_PREVIEWS_PREVIEWS_EXPERIMENTS_H_
#ifndef COMPONENTS_PREVIEWS_CORE_PREVIEWS_EXPERIMENTS_H_
#define COMPONENTS_PREVIEWS_CORE_PREVIEWS_EXPERIMENTS_H_
namespace previews {
......@@ -20,4 +20,4 @@ bool EnableOfflinePreviewsForTesting();
} // namespace previews
#endif // COMPONENTS_PREVIEWS_PREVIEWS_EXPERIMENTS_H_
#endif // COMPONENTS_PREVIEWS_CORE_PREVIEWS_EXPERIMENTS_H_
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/previews/previews_experiments.h"
#include "components/previews/core/previews_experiments.h"
#include "base/metrics/field_trial.h"
#include "testing/gtest/include/gtest/gtest.h"
......
......@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/previews/previews_io_data.h"
#include "components/previews/core/previews_io_data.h"
#include "base/bind.h"
#include "base/location.h"
#include "components/previews/previews_ui_service.h"
#include "components/previews/core/previews_ui_service.h"
namespace previews {
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_PREVIEWS_PREVIEWS_IO_DATA_H_
#define COMPONENTS_PREVIEWS_PREVIEWS_IO_DATA_H_
#ifndef COMPONENTS_PREVIEWS_CORE_PREVIEWS_IO_DATA_H_
#define COMPONENTS_PREVIEWS_CORE_PREVIEWS_IO_DATA_H_
#include <string>
......@@ -53,4 +53,4 @@ class PreviewsIOData {
} // namespace previews
#endif // COMPONENTS_PREVIEWS_PREVIEWS_IO_DATA_H_
#endif // COMPONENTS_PREVIEWS_CORE_PREVIEWS_IO_DATA_H_
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/previews/previews_io_data.h"
#include "components/previews/core/previews_io_data.h"
#include <memory>
......@@ -11,7 +11,7 @@
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "components/previews/previews_ui_service.h"
#include "components/previews/core/previews_ui_service.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace previews {
......
......@@ -2,9 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/previews/previews_ui_service.h"
#include "components/previews/core/previews_ui_service.h"
#include "components/previews/previews_io_data.h"
#include "components/previews/core/previews_io_data.h"
namespace previews {
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_PREVIEWS_PREVIEWS_UI_SERVICE_H_
#define COMPONENTS_PREVIEWS_PREVIEWS_UI_SERVICE_H_
#ifndef COMPONENTS_PREVIEWS_CORE_PREVIEWS_UI_SERVICE_H_
#define COMPONENTS_PREVIEWS_CORE_PREVIEWS_UI_SERVICE_H_
#include <string>
......@@ -45,4 +45,4 @@ class PreviewsUIService {
} // namespace previews
#endif // COMPONENTS_PREVIEWS_PREVIEWS_UI_SERVICE_H_
#endif // COMPONENTS_PREVIEWS_CORE_PREVIEWS_UI_SERVICE_H_
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/previews/previews_ui_service.h"
#include "components/previews/core/previews_ui_service.h"
#include <memory>
......@@ -11,7 +11,7 @@
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "components/previews/previews_io_data.h"
#include "components/previews/core/previews_io_data.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace previews {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment