summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-04-28 12:03:07 +0200
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-04-29 10:29:27 +0000
commitf5aaf48aac2a559f6576602ca34d68d94ea878d7 (patch)
tree1d12b125e20aae53bde33eb397aa7c6cf4764387
parentc1e0dc2c4f113d39e5539ca649105514de120cc9 (diff)
Cleanup copyright and origin in src/core
Adds copyright and origins to files in src/core based on Chrome sources. Change-Id: I842ce4c170bfeabe06d92fb67fef3d8f9a202ddc Task-number: QTBUG-53048 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
-rw-r--r--src/core/browser_message_filter_qt.cpp5
-rw-r--r--src/core/content_client_qt.cpp7
-rw-r--r--src/core/content_main_delegate_qt.cpp5
-rw-r--r--src/core/media_capture_devices_dispatcher.cpp1
-rw-r--r--src/core/print_view_manager_base_qt.cpp1
-rw-r--r--src/core/printing_message_filter_qt.cpp1
-rw-r--r--src/core/yuv_video_node.cpp5
7 files changed, 24 insertions, 1 deletions
diff --git a/src/core/browser_message_filter_qt.cpp b/src/core/browser_message_filter_qt.cpp
index 2f4c5056f..7551e5616 100644
--- a/src/core/browser_message_filter_qt.cpp
+++ b/src/core/browser_message_filter_qt.cpp
@@ -50,6 +50,11 @@ BrowserMessageFilterQt::BrowserMessageFilterQt(int /*render_process_id*/)
{
}
+// The following is based on chrome/browser/plugins/plugin_info_message_filter.cc:
+// Copyright (c) 2012 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.
+
bool BrowserMessageFilterQt::OnMessageReceived(const IPC::Message& message)
{
IPC_BEGIN_MESSAGE_MAP(BrowserMessageFilterQt, message)
diff --git a/src/core/content_client_qt.cpp b/src/core/content_client_qt.cpp
index fc9a2a283..8a5dde70f 100644
--- a/src/core/content_client_qt.cpp
+++ b/src/core/content_client_qt.cpp
@@ -58,6 +58,12 @@
#include <QString>
#if defined(ENABLE_PLUGINS)
+
+// The plugin logic is based on chrome/common/chrome_content_client.cc:
+// Copyright (c) 2012 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 "content/public/common/pepper_plugin_info.h"
#include "ppapi/shared_impl/ppapi_permissions.h"
@@ -95,7 +101,6 @@ static QString ppapiPluginsPath()
}
-// Adopted from chrome_content_client.cc
content::PepperPluginInfo CreatePepperFlashInfo(const base::FilePath& path, const std::string& version)
{
content::PepperPluginInfo plugin;
diff --git a/src/core/content_main_delegate_qt.cpp b/src/core/content_main_delegate_qt.cpp
index 85eb984a0..5933f873b 100644
--- a/src/core/content_main_delegate_qt.cpp
+++ b/src/core/content_main_delegate_qt.cpp
@@ -71,6 +71,11 @@ static base::StringPiece PlatformResourceProvider(int key) {
return base::StringPiece();
}
+// Logging logic is based on chrome/common/logging_chrome.cc:
+// Copyright (c) 2012 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.
+
static logging::LoggingDestination DetermineLogMode(const base::CommandLine& command_line)
{
#ifdef NDEBUG
diff --git a/src/core/media_capture_devices_dispatcher.cpp b/src/core/media_capture_devices_dispatcher.cpp
index 4d11277b0..b38e90c69 100644
--- a/src/core/media_capture_devices_dispatcher.cpp
+++ b/src/core/media_capture_devices_dispatcher.cpp
@@ -88,6 +88,7 @@ base::string16 getContentsUrl(content::WebContents *webContents)
return base::UTF8ToUTF16(webContents->GetURL().GetOrigin().spec());
}
+// Based on chrome/browser/media/desktop_capture_access_handler.cc:
scoped_ptr<content::MediaStreamUI> getDevicesForDesktopCapture(content::MediaStreamDevices &devices, content::DesktopMediaID mediaId
, bool captureAudio, bool /*display_notification*/, base::string16 /*application_title*/)
{
diff --git a/src/core/print_view_manager_base_qt.cpp b/src/core/print_view_manager_base_qt.cpp
index 60f166423..3e12901b9 100644
--- a/src/core/print_view_manager_base_qt.cpp
+++ b/src/core/print_view_manager_base_qt.cpp
@@ -34,6 +34,7 @@
**
****************************************************************************/
+// This is based on chrome/browser/printing/print_view_manager_base.cc:
// Copyright 2013 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.
diff --git a/src/core/printing_message_filter_qt.cpp b/src/core/printing_message_filter_qt.cpp
index fd6dc0fc2..ba4d5c6e6 100644
--- a/src/core/printing_message_filter_qt.cpp
+++ b/src/core/printing_message_filter_qt.cpp
@@ -34,6 +34,7 @@
**
****************************************************************************/
+// Based on chrome/browser/printing/printing_message_filter.cc:
// Copyright (c) 2012 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.
diff --git a/src/core/yuv_video_node.cpp b/src/core/yuv_video_node.cpp
index d5eee474f..f8290878b 100644
--- a/src/core/yuv_video_node.cpp
+++ b/src/core/yuv_video_node.cpp
@@ -37,6 +37,11 @@
**
****************************************************************************/
+// Based on cc/output/gl_renderer.cc and cc/output/shader.cc:
+// Copyright 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.
+
#include "yuv_video_node.h"
#include <QtGui/qopenglcontext.h>